All things Shopify and commerce
I am using the Berlin theme and the product pages are product.json when I look at the code
I want to be able to use tags to identify certain products that are available in-store only thus we will not have the Add To Cart or Buy Now options on these products.
I have found tutorials on how to do this in liquid files but nothing in JSON.
Any idea how I can accomplish this?
On which theme you are trying to achieve this?
For quick response - Message Me
Increase Xmas sales with BOGO+ Easy Free Gift Upsell. Get 30% OFF for 3 months with code "BFWIZZ30".
Hi @GrJohn
Go to your Online store > Themes > Customize > open a product page, then add a Custom Liquid block with the below code:
{%- if product.tags contains "store_item" -%}
<style>
.product-form__buttons {display: none !important;}
</style>
{%- endif -%}
Above code will hide quantity/add to cart/buy buttons from the products which contains the tag 'store_item'
If you want to use other product tag then specify the same tag in the above code.
Watch the attached video to see how to do this. I hope this helps 🙂
Thanks for the help I will give it a try! Would there be any way to replace the Add to cart/buy now options with a different button that linked to another website?
User | RANK |
---|---|
43 | |
40 | |
24 | |
24 | |
22 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023