Elegant Turtleneck Loose Casual Sweater
${function() {
const variantData = data.variant || {"id":"64c9090c-c2c5-4dd0-a1c9-66fc3a44915e","product_id":"b781a565-f458-4e13-9e04-8219bcc4b417","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221027843-green-S","barcode":"","position":4,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed8eb7af347e3a390a58bbe3d2cdd572.jpeg","path":"ed8eb7af347e3a390a58bbe3d2cdd572.jpeg","width":1050,"height":1068,"alt":"","aspect_ratio":0.9831460674157303},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0.57","compare_at_price":"52.83","price":"42.79","retail_price":"52.83","available":true,"url":"\/products\/elegant-turtleneck-loose-casual-sweater?variant=64c9090c-c2c5-4dd0-a1c9-66fc3a44915e","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"S"}],"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}
`
}()}
${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":"64c9090c-c2c5-4dd0-a1c9-66fc3a44915e","product_id":"b781a565-f458-4e13-9e04-8219bcc4b417","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221027843-green-S","barcode":"","position":4,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed8eb7af347e3a390a58bbe3d2cdd572.jpeg","path":"ed8eb7af347e3a390a58bbe3d2cdd572.jpeg","width":1050,"height":1068,"alt":"","aspect_ratio":0.9831460674157303},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0.57","compare_at_price":"52.83","price":"42.79","retail_price":"52.83","available":true,"url":"\/products\/elegant-turtleneck-loose-casual-sweater?variant=64c9090c-c2c5-4dd0-a1c9-66fc3a44915e","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"S"}],"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 `
`;
}()}