I have an ecomm store and a brick & mortar showroom but all transactions take place on the website. I have 3 products that I sell but need to looked at as “In Store Only”, I am allowed to put them on my website but I cannot list pricing on the website. How do I add a product to my website with the no price and the language “available in store only”? I am using the Forge theme
If you want to prevent certain products from being added to the cart so that no customer can purchase them from the website, you can tag those products for identification and use the name that you think would suit your store. A small example can be"InStoreOnly". And then add some custom code on the product page that will hide the add to cart button for those products. This approach will ensure that no customer can purchase such products from the store.
To Add the code please follow the steps given below:
Open the code editor, as shown in the screenshot below.
Create a snippet called ‘custom-styles’ and add the below code:
{% if template contains 'product' %}
{% comment %}
Add the tag name you added in case you have added some other name.
For example, I am using the tag name: InStoreOnly
{% endcomment %}
{% if product.tags contains 'InStoreOnly' %}
{% endif %}
{% endif %}
Please note that in case the buttons are still visible, then cross-check the selectors and the tag name. The selectors I have added here have been taken from the demo Forge theme from the Shopify Theme store, as I don’t have your store URL.
Include the ‘custom-styles.liquid’ file in your “theme.liquid” file.
Add the following include code to your theme.liquid file.
Regarding adding a text describing that the product is available only for in-store purchases, you can use the labels. To check whether your theme supports it or not and how to implement labels, you can contact your theme support.
Done? Now save the file, and try previewing to confirm if the changes work for you.