This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Input.cart.line_items.each do |item| | |
# ================================================================ | |
# LINE ITEM PROPERTY DISCOUNT | |
# ================================================================ | |
# Set the line item property in Shopify theme When adding item to cart | |
# | |
# line item property is a key/value pair. Example: {"_someCoolPromo": "1"} | |
# | |
# In this example: | |
# "_someCoolPromo" is the key we look for here and must ALWAYS start with an underscore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
justify-content: center; | |
2. | |
justify-content: flex-end; | |
justify-content: center; | |
justify-content: flex-end; | |
3. | |
justify-content: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if(typeof t === "undefined" || t-- > 0){ | |
setTimeout(interv, w); | |
try{ | |
func.call(null); | |
} | |
catch(e){ | |
t = 0; |