Christmas sock gift bag christmas ornament
${function() {
const variantData = data.variant || {"id":"36e20342-7c71-4b1d-a551-f69896b969ce","product_id":"e0f6a0c5-18a9-49b2-ad04-89f178c8fae0","title":"green","weight_unit":"kg","inventory_quantity":0,"sku":"66211028453-green","barcode":"","position":2,"option1":"green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3ffc3cd32ab24345ba5bf3d81a77fe0.jpeg","path":"e3ffc3cd32ab24345ba5bf3d81a77fe0.jpeg","width":750,"height":769,"alt":"","aspect_ratio":0.9752925877763329},"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=36e20342-7c71-4b1d-a551-f69896b969ce","available_quantity":999999999,"options":[{"name":"color","value":"green"}],"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":"36e20342-7c71-4b1d-a551-f69896b969ce","product_id":"e0f6a0c5-18a9-49b2-ad04-89f178c8fae0","title":"green","weight_unit":"kg","inventory_quantity":0,"sku":"66211028453-green","barcode":"","position":2,"option1":"green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3ffc3cd32ab24345ba5bf3d81a77fe0.jpeg","path":"e3ffc3cd32ab24345ba5bf3d81a77fe0.jpeg","width":750,"height":769,"alt":"","aspect_ratio":0.9752925877763329},"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=36e20342-7c71-4b1d-a551-f69896b969ce","available_quantity":999999999,"options":[{"name":"color","value":"green"}],"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 `
`;
}()}