Home › Forums › Themes Support › Claue › Problem with display
- This topic has 15 replies, 3 voices, and was last updated 6 years, 11 months ago by Harry.
-
AuthorPosts
-
-
December 1, 2017 at 1:18 am #14172
-
December 1, 2017 at 12:01 pm #14187
Hi,
It display price like your screen shot when you set different price for different variation http://take.ms/KBNQ1
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 1, 2017 at 2:58 pm #14194
Hi,
Yes but I would like the two same price display on the screen 1 on the screen 2 : price with “crossed out price”
the class=”woocommerce-variation-price” on the screen 1
Thanks
-
-
December 1, 2017 at 5:36 pm #14204
Could you send us the link of product on your site. I on our demo it still show regular price with line cross like you want http://take.ms/8HvCvw
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 1, 2017 at 5:45 pm #14205
Hi,
Yes but I would like to display http://take.ms/8HvCvw on the WALL SHOP page too
Thx
-
December 1, 2017 at 6:50 pm #14208
Hi,
You mean display this on product listing page?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 1, 2017 at 6:58 pm #14210
Hi,
Yes , display on the listing page
-
-
December 1, 2017 at 9:56 pm #14221
Sorry on product listing it doesn’t support show price like this.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 2, 2017 at 12:38 am #14238
-
-
December 2, 2017 at 1:34 am #14240
Could you send us the link you saw the solution? Is the site use WooCommerce?
Yes, you support will be expired, we happy if you purchase 6 month extend support.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 2, 2017 at 2:01 am #14243
Hi,
The code here :
add_filter( ‘woocommerce_variable_sale_price_html’, ‘wc_shopy_variation_price_format’, 10, 2 );
add_filter( ‘woocommerce_variable_price_html’, ‘wc_wc_shopy_variation_price_format’, 10, 2 );function wc_shopy_variation_price_format( $price, $product ) {
$min_price = $product->get_variation_price( ‘min’, true );
if ($product->product_type == ‘variable’) {
$available_variations = $product->get_available_variations();
for ($i = 0; $i < count($available_variations); ++$i) {
$variation_id = $available_variations[$i][‘variation_id’];
$variable_product1 = new WC_Product_Variation($variation_id);
$regular_price = $variable_product1->regular_price;
}
$price = sprintf( __( ‘A partir de%1$s<ins>%2$s</ins>’, ‘woocommerce’ ), wc_price( $regular_price ) , wc_price( $min_price ) );
}
else{
$price = sprintf( __( ‘A partir de %1$s’, ‘woocommerce’ ), wc_price( $min_price ) );
}
return $price;
}So there is no filter on category so it apply for all variation price, this is a problem for variation with no SALE, could you help me for apply this on variation with a category call “promotions” ?
Thanks
-
-
December 2, 2017 at 11:19 am #14267
Hi,
Please check the right code here https://pastebin.com/B4cPhXVV
-
December 2, 2017 at 5:24 pm #14278
Hi,
It’s not ok, “&& is_product_category( ‘promotions’ )” it apply for promotions but there is no price on another page
Thanks
-
December 3, 2017 at 8:59 am #14297
You mean you want to display price for all category except “Promotions”?
-
December 4, 2017 at 5:34 am #14348
Hi,
I would like to display sale price only in category “promotions” on the listing shop page & “promotions” page.
Thanks
-
-
December 4, 2017 at 9:29 am #14349
Hi,
Please create new page as “promotions” and use short code
[products limit="12" columns="4" category="promotions" on_sale="true"]
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.