Christmas sock gift bag christmas ornament
${function() {
const variantData = data.variant || {"id":"70e0066c-bb7e-4c7e-8e73-48305ca7b1ca","product_id":"e0f6a0c5-18a9-49b2-ad04-89f178c8fae0","title":"gray","weight_unit":"kg","inventory_quantity":0,"sku":"66211028453-gray","barcode":"","position":1,"option1":"gray","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f301f14505b3a31f8607709a284eb28.jpeg","path":"6f301f14505b3a31f8607709a284eb28.jpeg","width":750,"height":763,"alt":"","aspect_ratio":0.9829619921363041},"wholesale_price":[{"price":15.01,"min_quantity":1}],"weight":"0","compare_at_price":"17.87","price":"15.01","retail_price":"17.87","available":true,"url":"\/products\/christmas-sock-gift-bag-christmas-ornament?variant=70e0066c-bb7e-4c7e-8e73-48305ca7b1ca","available_quantity":999999999,"options":[{"name":"color","value":"gray"}],"off_ratio":16,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"70e0066c-bb7e-4c7e-8e73-48305ca7b1ca","product_id":"e0f6a0c5-18a9-49b2-ad04-89f178c8fae0","title":"gray","weight_unit":"kg","inventory_quantity":0,"sku":"66211028453-gray","barcode":"","position":1,"option1":"gray","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f301f14505b3a31f8607709a284eb28.jpeg","path":"6f301f14505b3a31f8607709a284eb28.jpeg","width":750,"height":763,"alt":"","aspect_ratio":0.9829619921363041},"wholesale_price":[{"price":15.01,"min_quantity":1}],"weight":"0","compare_at_price":"17.87","price":"15.01","retail_price":"17.87","available":true,"url":"\/products\/christmas-sock-gift-bag-christmas-ornament?variant=70e0066c-bb7e-4c7e-8e73-48305ca7b1ca","available_quantity":999999999,"options":[{"name":"color","value":"gray"}],"off_ratio":16,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}