evon shopify theme code example

Example 1: shopify theme kit

# After installed Themekit locally and setup Private App API Key

# To get a list of all the themes in Shopify store
theme get --list -p=[your-password] -s=[you-store.myshopify.com]

# To download theme to workspace (folder)
theme get -p=[your-password] -s=[you-store.myshopify.com] -t=[your-theme-id]

# Watch theme kit for changes 
theme watch

# If you want hotreload for a better DX install and use browser-sync
npm install -g browser-sync

# To use browser-sync
browser-sync start --proxy "https://<mystore>.myshopify.com/" --files "*/*.*" --reload-delay 1000

Example 2: how to add discount code manually in shopify debut theme

{% if product.compare_at_price_max > product.price %}
{{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0'}}% off
{% endif %}