Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I need to hide the "Buy Now" options for the product pages of my kitchen knives, because it allows the user to bypass age verification in the cart. How do I do this. I am referring to this option here:
Solved! Go to the solution
This is an accepted solution.
Hi @lukafernada ,
Follow these steps:
Edit the Product Template:
Add Conditional Logic to Hide the Buy Now Button:
In the product template file, find the section of code that renders the "Buy Now" or dynamic checkout button. It may look like this:
{{ form | form | dynamic_checkout_button }}
{% unless product.tags contains 'no-buy-now' %}
{{ form | form | dynamic_checkout_button }}
{% endunless %}
Doesn't let me save? Is this in the right place?
This is an accepted solution.
Never mind i fixed it:
thank you
Do you want to hide the button only for kitchen knives, or would you prefer the flexibility to hide it for any product of your choice?
Could you please share your store's URL in the meantime?
yes any product of my choice preferably,
cheffings.net is the URL