This topic has 7 replies, 2 voices, and was last updated 1 weeks, 4 days ago ago by Luca Rossi
is there CSS or PHP snippet that be shared to hide (remove) the add to cart and buy now buttons but keep the “Add To Quote” from specific product pages?
update
Dear HUSSTLE,
We hope this message finds you well.
We would like to provide you with a solution to selectively hide the “Add to Cart” and “Buy Now” buttons for certain products on your website. Please implement the following custom CSS code to achieve the desired effect:
.single-product.postid-2299 form.cart .woocommerce-variation-add-to-cart,
.single-product.postid-2299 form.cart table.variations {
display: none !important;
}
This code should be inserted into your site’s custom CSS section. If you require any further assistance or have additional questions, please do not hesitate to reach out.
Warm regards,
The 8Theme Team
update #2
Hi @HUSSTLE,
In this case, pleaase delete the previous CSS code and add this custom CSS code instead:
div#wc-stripe-payment-request-wrapper,
.single-product.postid-2299 form.cart table.variations,
.single-product.postid-2299 form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
display: none !important;
}
Let us know how it goes!
ability to remove add to cart and buy now, while keeping add to quote worked perfectly. THANKS!
Dear @HUSSTLE,
We are pleased to confirm our assistance.
Best regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up