Remove add to cart button on specific items

Question:
I would like to remove the add to cart button on some items in my wix store, not all of them. Some of the things I sell cannot be sold online. I have tried wix help, they were no help!

Product:
Wix studio

Some of the items I sell are prohibited and require face to face transactions. I am trying to remove purchase options, add to cart and buy now from those specific products

What have you already tried:
I have asked all the AI’s and wix “experts” with no results. It always seems to remove the button from all products

Any suggestions to resolve the problem in other ways would be appreciated.

Hi Simon,

This can be done, and I have implemented similar functionality on a Wix Studio site successfully. But the reason you have got NOs from everyone above is because the solution is not easy or straightforward.

To implement this, you would have to write Velo code and along with that, the solution also involves advanced DOM manipulation - which in layman terms would mean altering elements on your site’s frontend which cannot be modified through Wix Velo code - which in this case are the Add to Cart & Buy Now buttons and other product selection options. Along with the seamless communication between the DOM’s HTML code and your site’s Velo code, this would also require an ‘identifier’ that checks which products are the prohibited ones and to hide the checkout options only for these specific products and display the rest of the products as is, without any kind of modification to their purchase flow.

And the other solution - which does not require DOM manipulation, would be to develop your own custom product page - i.e. product galleries, descriptions, selection options and purchase options, etc… - everything from scratch, which would require a good amount of Velo code.

So if you are proficient in writing code, especially Velo (without AI ofcourse), then you can try to implement one of these two solutions mentioned above. Else I would suggest reaching out to a developer who can integrate this functionality on your site.


As a starting point, you may refer to this example which is slightly different and does not ‘hide’ any options but instead changes the text and logic of the purchase buttons:

I’m not capable of writing code but you suggesting of requesting a quote may be the solution. I will look into that. Thank you so much!

You’re very welcome!

However the Request A Quote example itself requires a good amount of code, so all the best with that! And in case you’re still unable to do it yourself and would like me to set that up for your website, feel free to reach out to me via my profile I can code that up for you! (:

That is something that would be very helpful, is there a way to have it as an option in categories or would each product page need to coded for the change?

That would depend on your store setup. You can either code it so that if a product is from a specific category as a whole, wherein all products falling under it cannot be bought, then you can have your categories hardcoded. But since this will apply category-wide restrictions on buying items, this will not work unless ALL products in that category are not buyable. Else it will even hide the buttons that should be available to purchase through your store if they fall in the particular category.

Here’s where another solution would have to be used - using a CMS database as an identifier, where you can create a list of products that are not available to purchase throughout your entire store, regardless of which category they fall under.

In any case, the code will have to be written only once for the product page - since it is a dynamic page (meaning all the products on your store share the same product page, layout & functionality). So the code would have to be written just once, and it will work for all product pages on your site.

That sounds like it would work. If I create a category “prohibited” and anything I can’t sell online gets added to that.

How do we make this happen?

With code. You’ll have to write code to make that happen, as I have mentioned above.

Is it something you could do for me?

Absolutely!

Please send in your details along with your website address through the Contact link in my profile so that I can take a look at your setup and give you an estimate of how much it will cost.