Viewing 3 reply threads
You must be logged in to reply to this topic.
Is there a way to hide prices on the following pages: 1. Shop page, 2. Single product page – so that the price only shows after the customer has selected its choice from the attributes/variables on the single product page. Thanks in advance.
Hello,
This is a woocommerce customization. Try adding this css in Custom Css box:
.woocommerce-variation-price .price, .woocommerce ul.products li.product .price
{
display: none;
}
Then add this js in the Custom JS box:
(function($){
$(document).ready(function(){
$('.variations_form.cart select').change(function(){
$('.woocommerce-variation-price .price').css('display', 'block');
console.log('changed');
});
});
})(jQuery);
Let us know.
Best regards!
I received an error when trying to add the JS code.
There are 21 errors which must be fixed before you can save.Update anyway, even though it might break your site?
Hello,
Please add some wp credentials in your profile data. So we can check.
Best regards!
You must be logged in to reply to this topic.