function custom_woocommerce_get_price_html( $price, $class ) { global $product;
if( $product->is_type( 'variable' ) ) { return woocommerce_price( $product->min_variation_price ); return woocommerce_price( $product->max_variation_price ); // delete the above line if you want to show maximum price }
return $price; }
But I want hide min and max price.
Client should see price when choose size of product.
If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).
A huge thank you from Laborator in advance and have a great weekend!
I'm sorry but this can't be edited with CSS, please check if you find any plugin for this or contact WooCommerce support directly https://woocommerce.com/contact-us/
Hi, is there a way to hide the price range (when variable product) on the single product page?
On my site http://bsid.it/sklep/produkt/466/ you can see that I add custom code to functions.php :
But I want hide min and max price.
Client should see price when choose size of product.
How can i do this?
Thanks for your help.
Hi Szymon,
Please remove your php editing and restore the file to theme original, then we will try to hide them with CSS.
Ok. I restore previous version of functions.php file. What's next? :)
Hi Szymon,
I think i don't see a min-max price on your site for the moment.
(view large version)
Sorry, i change my serwer.
Please see my site at http://fabrykabodziakow.pl/produkt/466/
Hi Szymon,
Can you please add the code below to Custom CSS
Now, it's ok.
Thanks :)
Hi Szymon,
I'm glad to hear that :)
If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).
A huge thank you from Laborator in advance and have a great weekend!
Hello.
I have another question about price range (when variable product) but now on the category page.
http://fabrykabodziakow.pl/kategoria-produktu/body/
How can I change price range to " From (price min)"
Hi Szymon,
So you want to remove minimum price or maximum price please?
I want remove maximum price and add before minimum price word "From"
Hi Szymon,
I'm sorry but this can't be edited with CSS, please check if you find any plugin for this or contact WooCommerce support directly https://woocommerce.com/contact-us/