remove add to cart button for specific products shopify
Once you have your backup, access the themes code by using the "Actions" menu for the theme: Once in the theme code, things will vary based on the theme you're using. Thanks. Sometimes the themes product page template will refer to a section, such as in this screenshot: In this case, you'll need to make a duplicate of the template, as well as the section referenced within the template. One of the easiest ones is to use the following script in the functions. More you can read here, how to create an alternate templatehttps://shopify.dev/tutorials/customize-theme-create-alternate-templateshttps://www.shopify.in/partners/blog/shopify-alternate-templatesNote: In alternate template you have to remove the 'add to cart' functionality.Thanks. - Was your question answered? Look down for the Additional CSS section and click on it. My first recommended step is to create a duplicate of your theme. Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers. , Replace Add to cart with a contact link, Find out your theme's architecture version, Explore Online Store 2.0 theme customizations, hide dynamic checkout buttons on product pages, When you find the code, wrap it in Liquid. Answers to the most popular questions about the WordPress content management system. Step 4: Find the code for the Add to cart button. Under Pause your store, click Find out more. If you are using an older, non-sectioned theme, click the Non-sectioned themes button and follow the instructions.
This customization isn't compatible with dynamic checkout buttons. From your Shopify admin, go to Online Store > Themes. {% else %} In the Minimal theme, the add to cart button code looks like this: When you are ready to show your Add to cart buttons again, go back to your product.liquid template on the Edit HTML/CSS page, remove the {% comment %} and {% endcomment %} tags, and click Save. Mark it as an Accepted Solution- To learn more visit the Shopify Help Center or the Shopify Blog, Thanks for that explanation however it does not work for the theme I am using.When I inspect element on the add to cart button it shows a unique ID for each product (See image). When you are ready to show your Add to cart buttons again, go back to your product-template.liquid file on the Edit HTML/CSS page, remove the {% comment %} and {% endcomment %} tags, and click Save. You can hide your Add to cart buttons on your storefront and reveal them again in the future. Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers. In your WordPress dashboard, go to Appearance and click on Customize. php. Hiding the "Add to Cart" button on just a few specific products is absolutely possible without the use of an app, but this will require some code customization to your theme. Is your theme optimized to be user-frie Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. ,