Would some one out there know how to disable the add to cart button from the collection pages. I have tried most of the answers found on google but nothing is working.
The main reason i need this is that most of my products are personalisable so i need the customer to go into the product and make choices rather than just purchasing.
Ideally, every theme gives the ability to the store owners to manage these basic changes using the customization settings. So I would recommend you first explore your theme customization settings. There is a high chance that your theme will have the settings to disable the “Add to cart” button. Here is a document outlining the guide from the theme developers: https://shopifytemplate.gitbook.io/december-os2.0/theme-settings/general-settings. I would recommend checking this out once and exploring your theme settings.
In case you are not able to find any settings through which you can disable the “Add to cart” button on the collection pages, try following the steps below to hide the"Add to cart" button using custom code.
Open the code editor, as shown in the screenshot below.
Create a snippet called ‘custom-styles’ and add the below code:
[details=Show More]
Please make sure to verify the selector for the “Add to cart” button in your theme, the selector I have used is from the demo theme, so there are chances that in your theme the selectors may vary.
[/details]3. Include the ‘custom-styles.liquid’ file in your “theme.liquid” file.
Add the following include code to your theme.liquid file.
I hope this will help you in getting the desired layout.
If my responses helped you, please consider giving them a like ( ) and marking them as accepted solutions if they resolved your issue. Your feedback helps other community members with similar questions.
Hey @petboy ,
Could you please share your store URL? If your store is password-protected, kindly provide the password as well. This will allow me to suggest the correct code tailored to your theme.