Disable Add to Cart button on Out of Stock products on Wishlist Page

This article is deprecated. This feature has been permanently integrated into the main app.

One requirement of many stores is that they want to disable Add to Cart button on Out of Stock products on Wishlist Page. We are soon going to incorporate this feature in the app. Till that time, the below code can be used to achieve this.

1. Create a new snippet titled wishlist-enhancements. It creates the file snippets/wishlist-enhancements.liquid

2. Add the following code to it and save it.

HTML

3. Add the following code anywhere before closing </head> in layout/theme.liquid.

HTML

Leave a Reply

Your email address will not be published. Required fields are marked *