Hide Add to cart ajax button on all products

edited January 2021 in WooCommerce

Hello,

I want to remove add to cart ajax button/option on all products. Either these products are simple or variable

I tried this CSS code but it only hide the button on Simple products. But all other products which have Size variable still shows this LINK icon on hover. Link icon can be shown on all products, its alright. But I just want to take out the ADD TO CART FUNCTIONALITY from the user.

CSS CODE USED

.if-overlay .image_frame .image_wrapper .image_links.double {

  display: none;

}

This link has simple products.

henna4uleicester.co.uk/product-category/bridal/

This link has variable products.

henna4uleicester.co.uk/product-category/premium-cones/


Second Issue

Single product page shows a message on top when product is added to cart. Screenshot attached.

But on ajax button this message does not show up. How to get this message on ajax add to cart?

If this happens then I dont need the above solution at all (i will not remove the add to cart button)

nipboard.io/rJ9sau.jpg

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.