I need some help with removing the Add to Cart button and the Buy with Shop Pay button from certain products only within the shopify dawn theme.
I have gone through every product that i DONT want the add to cart button to show and added a tag of ‘noshow’.
can you please let me know how i can hide the add to cart and buy now button from the products with a tag of noshow?
THE URL: https://bespokelaneandco.com.au/products/100-raw-eucalyptus-honey
Moeed
October 18, 2023, 5:44am
2
Hey @sandraleedesign
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
{% if product.handle == '100-raw-eucalyptus-honey' %}
{% endif %}
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @sandraleedesign
You can follow the following steps:
Please go to the Online Store
Then Edit Code
Please find the main-product.liquid file in section
in the end of the file please add following code.
{% if product.tags contains 'noshow' %}
{% endif %}
If this solution is worked, then please Like this and Mark this as accepted solution!
Laddi
Hi @sandraleedesign
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1 : Online Stores > Themes > More Actions > Edit code
Step 2 : click on theme.liquid and paste the code above the
{% if handle contains '100-raw-eucalyptus-honey' %}
{%endif%}
{% if product.tags contains 'no-show' %}
{%endif%}
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Hi @sandraleedesign
You can use code partners provide above or simple create another product template for products that you want to hide buys button and then remove Buy buttons blocks from that template.
You can check this article to know how to create a new template
https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates#create-a-new-template
And then delete Buy buttons from Online store > Themes > Customize > Products, select product template, delete or disable Buy buttons block