- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Shopify. How to make the product options required
March 23, 2016
This tutorial will show how to make the product options required before the product can be added to Shopify cart.
Shopify. How to make the product options requiredIf you do not want to let customers add the product to cart until the option value is selected (for example size specification), please perform the following steps.
We strongly recommend backing up the theme before making the changes so you could rollback the changes by clicking on Online Store > Themes > Download theme file:
Log into your admin panel and navigate to Online Store > Themes > Edit HTML/CSS > Snippets > Add a new snippet:
Name the snippet snippet-add-to-cart and press Create a snippet:
If you already have this snippet, miss this step and steps 3, 6.
Paste this code to the snippet area and Save:
-
Add one more snippet by pressing Create a snippet, name it as pick-an-option, paste this code hosted on GitHub. and Save.
Open theme.liquid and paste this code before the closing 太阳城娱乐 赤峰天气预报 Online-gambling-sales@thegoldsearch.com 庐山东林寺 Macau-New-Portuguese-capital-careers@estellaaesthetics.net 澳门银河 Lisboa-Casino-contactus@ninohq.com Sun-City-Sports-media@ytjskf.com 太阳城娱乐 澳门新葡京博彩 广东塑料交易所 皇冠博彩 Sports-betting-service@yx-jzx.com 沙巴在线平台 太阳城 Sun-City-entertainment-City-customerservice@uncsj.com 知彼而知己 Venetian-gambling-contact@mrrobc.com 体育博彩平台 全车网 临床药师网 12306网 新腐书网 天涯在线书库 优行网 水源logo设计制作网 中国大竹 新疆旅游网 中公军转干考试网 乐途旅游网珠海旅游 中国抚远 站点地图 360音乐 青网 中信国安葡萄酒业股份有限公司