Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| These days some business have online store in different country with the same name. They have different URL for different country but they are facing a problem that how they can redirect store url based on IP address for eg. | |
| www.domain.us – Customers in the United States | |
| www.domain.ca – Customers in the Canada | |
| www.domain.com – Customers in rest the world | |
| This article guide you to do that. |
| # DEV Sandbox | |
| ## Objective | |
| Learn Shopify and practice JavaScript by following BVA styleguide. | |
| Some designs might be simplified along the way. | |
| ## Links | |
| ### Git |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
| sass/ | |
| | | |
| |– base/ | |
| | |– _reset.scss # Reset/normalize | |
| | |– _typography.scss # Typography rules | |
| | ... # Etc… | |
| | | |
| |– components/ | |
| | |– _buttons.scss # Buttons | |
| | |– _carousel.scss # Carousel |
| {% if product.variants.size > 1 %} | |
| <script> | |
| var variantImages = {}, | |
| thumbnails, | |
| variant, | |
| variantImage, | |
| optionValue, | |
| productOptions = []; | |
| {% for variant in product.variants %} | |
| variant = {{ variant | json }}; |
##Sass Functions Cheat Sheet
We want to automagically add a free product to the customers cart when they purchase a certain product(s).
Note: This code will likely need to be adapted to suit your theme, however it should be enough to discribe the concept.
Add the free product
settings.free-product and settings.free-product-collectionHave you ever tried to track down which piece of javascript modified the DOM?
Use a mutationObserver to monitor the DOM for changes. Then run console.trace() inside the callback. This will log a stack trace all the way back to the code that did the DOM modification.
Basically copy and paste this code.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>First React App</title> | |
| <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| <script src='https://unpkg.com/babel-standalone@6/babel.min.js'></script> | |
| </head> | |
| <body> | |
| <div id='app'></div> |