- 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 365-Sports-Betting-media@media2v-api.net 足球投注平台 Gambling-website-help@cqpass.net 皇冠体育 太阳城 太阳城 澳门威尼斯人 成都酒店装饰设计 电子试玩 皇冠博彩 冰球突破 金酷游戏平台 hc360慧聪网资讯中心 太原天气预报 乐刷 品牌服装资讯 龙游房产网 博锐斯 三九养生堂 新三水 金联创—化工