Christmas Gift Decoration Socks
${function() {
const variantData = data.variant || {"id":"9247a110-d8df-440d-9e79-41952d3114b5","product_id":"8cce7def-2465-48e4-9c79-71c81ba43a70","title":"Red-ONE SIZE","weight_unit":"kg","inventory_quantity":999,"sku":"20110946-red-onesize","barcode":"","position":2,"option1":"Red","option2":"ONE SIZE","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b775508ea590c6f004f11e8f83ec79a2.jpeg","path":"b775508ea590c6f004f11e8f83ec79a2.jpeg","width":1100,"height":1500,"alt":"","aspect_ratio":0.7333333333333333},"wholesale_price":[{"price":10.18,"min_quantity":1}],"weight":"0","compare_at_price":"11.98","price":"10.18","retail_price":"11.98","available":true,"url":"\/products\/christmas-gift-decoration-socks?variant=9247a110-d8df-440d-9e79-41952d3114b5","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"ONE SIZE"}],"off_ratio":15,"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}
`
}()}
${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":"9247a110-d8df-440d-9e79-41952d3114b5","product_id":"8cce7def-2465-48e4-9c79-71c81ba43a70","title":"Red-ONE SIZE","weight_unit":"kg","inventory_quantity":999,"sku":"20110946-red-onesize","barcode":"","position":2,"option1":"Red","option2":"ONE SIZE","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b775508ea590c6f004f11e8f83ec79a2.jpeg","path":"b775508ea590c6f004f11e8f83ec79a2.jpeg","width":1100,"height":1500,"alt":"","aspect_ratio":0.7333333333333333},"wholesale_price":[{"price":10.18,"min_quantity":1}],"weight":"0","compare_at_price":"11.98","price":"10.18","retail_price":"11.98","available":true,"url":"\/products\/christmas-gift-decoration-socks?variant=9247a110-d8df-440d-9e79-41952d3114b5","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"ONE SIZE"}],"off_ratio":15,"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 `
`;
}()}