Christmas knitted elk snowflake pile socks floor stockings
${function() {
const variantData = data.variant || {"id":"3b1f575b-d903-46ab-b9cf-7e9195fa8d52","product_id":"2f1df2b8-bb27-4752-8bcc-6f8ce1c1a00c","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"66221028966-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/84b12f5142dfc6db162053eee11247b1.jpeg","path":"84b12f5142dfc6db162053eee11247b1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.5,"min_quantity":1}],"weight":"0.04","compare_at_price":"21.6","price":"17.5","retail_price":"21.6","available":true,"url":"\/products\/christmas-knitted-elk-snowflake-pile-socks-floor-stockings?variant=3b1f575b-d903-46ab-b9cf-7e9195fa8d52","available_quantity":999999999,"options":[{"name":"color","value":"white"}],"off_ratio":19,"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":"3b1f575b-d903-46ab-b9cf-7e9195fa8d52","product_id":"2f1df2b8-bb27-4752-8bcc-6f8ce1c1a00c","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"66221028966-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/84b12f5142dfc6db162053eee11247b1.jpeg","path":"84b12f5142dfc6db162053eee11247b1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.5,"min_quantity":1}],"weight":"0.04","compare_at_price":"21.6","price":"17.5","retail_price":"21.6","available":true,"url":"\/products\/christmas-knitted-elk-snowflake-pile-socks-floor-stockings?variant=3b1f575b-d903-46ab-b9cf-7e9195fa8d52","available_quantity":999999999,"options":[{"name":"color","value":"white"}],"off_ratio":19,"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 `
`;
}()}