Jump to content

Remove Add to Cart button only on certain products, or disable them for purchase?

Go to solution Solved by JosefMicka,

Recommended Posts

  • Replies 3
  • Views 121
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted (edited)

you can add code into custom css for specific products to hide it you need to write selector for each product

[data-item-id="664a4d14f70aea387c299298"] .sqs-add-to-cart-button-wrapper {
display:none;
}

data-item-id can be found in webpage code with product, i got this one from page you linked.

image.thumb.png.3e51e28386d560b7c24e0b59ec54ae8f.png

Edited by JosefMicka
Posted
3 hours ago, JosefMicka said:

you can add code into custom css for specific products to hide it you need to write selector for each product

[data-item-id="664a4d14f70aea387c299298"] .sqs-add-to-cart-button-wrapper {
display:none;
}

data-item-id can be found in webpage code with product, i got this one from page you linked.

image.thumb.png.3e51e28386d560b7c24e0b59ec54ae8f.png

Thank you! We've ended up just adjusting the stock of the items to prevent certain items from being added to the cart, but I will keep this in the back pocket for the future.

Posted
20 hours ago, tannerdrums said:

Thank you! We've ended up just adjusting the stock of the items to prevent certain items from being added to the cart, but I will keep this in the back pocket for the future.

setting item out of stock is also option, that came to my mind, but since i was not sure, if it doesn't show "out of stock" or similar message, i opted for CSS approach.

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.