This topic has 36 replies, 5 voices, and was last updated 9 years, 11 months ago ago by Eva Kemp
Hi, I want to hide the price range for appearing on single product page. Please suggest ways to hide it.
Any css code, anything at all. Thanks for your time.
Hello,
Please provide us with a page link where you want to hide the price range.
Thank you.
Regards,
Eva Kemp.
http://makeinindiadigital.com/?product=3000-genuine-facebook-likes
I have few more queries:
2. I do not need ‘Compare’ button on my website. where can I remove it from?
3. From the Single product page, I want to hide home->category->subcategory to be shown.
4. I want to take user attachment on the product page before they checkout. As my business needs product customisation. I want to take some text input with attachement from users before checkout and want save it. Please help me address the above issues.
Thanks.
Hello,
1. To remove price range you need add this code into custom.css file:
.single-product-page .product-info .price {
display: none;
}
2. Could you please clarify where you that button?
3. Do you mean you want to remove breadcrumbs? If so then you need add this code in custom.css:
.woocommerce-breadcrumb {
display: none;
}
4. You can achieve this using some 3rd-party plugins (perhaps there are some for Woocommerce).
Thank you.
Regards,
Eva Kemp.
Thank you Eva. The price range is invisible now.
On the same page 1 have 2 more things:
http://makeinindiadigital.com/?product=3000-genuine-facebook-likes
1. “Add to Wishist” is shown twice on the page. Ideally, it should be only once, near the checkout button. How to delete another one?
2. I still can see “Categories: Facebook Marketing, Social Media Marketing.” Is there any way to remove this too?
About the ‘compare’ button I wrote in the above message, I simply deactivated the compare plugin and it got hidden. Now, I am just struggling with “Wishist”.
Thank you for all your help.
Hello,
1. Go to Woocomerce > Settings > Wishlist tab and choose “Use shortcode” in “Position” option.
Don’t forget to save the changes.
2. Please add this code in custom.css file:
.single-product-page .posted_in {
display: none !important;
}
Thank you.
Regards,
Eva Kemp.
Excellent it worked smoothly! 🙂 Thanks a ton!!
You’re welcome!
If you have any questions don’t hesitate to contact us.
Regards,
Robert Hall.
I just noticed that breadcrumb is hidden on firefox however on chrome browser the category->sub category is still visible.
http://makeinindiadigital.com/?product=ultimate-adwords-ppc-checklist
What needs to be done?
Thanks.
Hello,
I’ve checked your site in Chrome and breadcrumbs aren’t shown.
Try to clear cache and cookies in Chrome browser.
Thank you.
Regards,
Eva Kemp.
yes, it is working. thanks again.
Hello,
You’re welcome.
Regards,
Eva Kemp.
Hello,
I can’t seem to remove the product price range.
Can you please walk me through it on wordpress.
Thanks,
Chris
Hello @ckronus,
Do you want to remove it from a single product page as well and keep only one price?
Thank you.
Regards,
Eva Kemp.
Hey Eva,
Just display one price, not a range.
Thanks,
Chris
Hello @ckronus,
Please provide us with wp-admin panel credentials in Private Content.
Thank you.
Regards,
Eva Kemp.
Sent.
Thanks!
Hello @ckronus,
As you are using product variations you can remove price range only with the code via custom.css, because each variation has its price and it’s difficult to show only one price.
Otherwise you can contact Woocommerce support concerning this issue as this is their configuration.
Thank you.
Regards,
Eva Kemp.
Hey Eva,
Right. I’ll contact them.
Thanks for the help.
Best,
Chris
Hello,
You’re welcome.
Regards,
Eva Kemp.
Hello Eva,
I was told by Woocommerce to insert this code into the theme’s functions.php file but when I do the site goes blank…
<?php
// Use WC 2.0 variable price format, now include sale price strikeout
add_filter( ‘woocommerce_variable_sale_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
add_filter( ‘woocommerce_variable_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
function wc_wc20_variation_price_format( $price, $product ) {
// Main Price
$prices = array( $product->get_variation_price( ‘min’, true ), $product->get_variation_price( ‘max’, true ) );
$price = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
// Sale Price
$prices = array( $product->get_variation_regular_price( ‘min’, true ), $product->get_variation_regular_price( ‘max’, true ) );
sort( $prices );
$saleprice = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
if ( $price !== $saleprice ) {
$price = ‘‘ . $saleprice . ‘ <ins>’ . $price . ‘</ins>’;
}
return $price;
}
?>
Where would I paste this?
Best,
Chris
Hello,
I’ve added this code into functions.php file. Check it.
Regards,
Robert Hall.
Awesome! Thanks Robert.
Best,
Chris
You’re welcome!
Regards,
Robert Hall.
Hi there,
I have the same issue, I’d like the price range for variable products to not appear.
What should I do? Should I add the code into functions.php file??
Thanks
Hello @tbijeux,
Add the code mentioned in the previous post into functions.php file.
Thank you.
Regards,
Eva Kemp.
Hi Eva,
I am getting a blank page, as the previous user. Help!
Thanks
Shoot I can’t go back into the function.php and fix the code and I can’t login in back to WordPress I just get a white screen….it’s just a white screen.
Fixed the “White screen”……now how do I correctly add the code to remove the variable price range lol
Hello @tbijeux,
Please provide us with wp-admin panel and FTP credentials in Private Content.
Thank you.
Regards,
Eva Kemp.
The issue related to '‘Disable Variable Product Price Range’' has been successfully resolved, and the topic is now closed for further responses