Casual straight sleeve knit dress
${function() {
const variantData = data.variant || {"id":"7e4efe20-8f5d-491b-92f7-5b5a2e21dfe6","product_id":"4f4fe04a-bc38-446f-845e-c21b58265ff5","title":"brown-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662211262177-brown-one size","barcode":"","position":3,"option1":"brown","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4dc01853f6ed2d5d82ef435b9430ab4e.jpeg","path":"4dc01853f6ed2d5d82ef435b9430ab4e.jpeg","width":860,"height":838,"alt":"","aspect_ratio":1.026252983293556},"wholesale_price":[{"price":65.98,"min_quantity":1}],"weight":"0.4","compare_at_price":"79","price":"65.98","retail_price":"79","available":true,"url":"\/products\/casual-straight-sleeve-knit-dress?variant=7e4efe20-8f5d-491b-92f7-5b5a2e21dfe6","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"one size"}],"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}
`
}()}
${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":"7e4efe20-8f5d-491b-92f7-5b5a2e21dfe6","product_id":"4f4fe04a-bc38-446f-845e-c21b58265ff5","title":"brown-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662211262177-brown-one size","barcode":"","position":3,"option1":"brown","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4dc01853f6ed2d5d82ef435b9430ab4e.jpeg","path":"4dc01853f6ed2d5d82ef435b9430ab4e.jpeg","width":860,"height":838,"alt":"","aspect_ratio":1.026252983293556},"wholesale_price":[{"price":65.98,"min_quantity":1}],"weight":"0.4","compare_at_price":"79","price":"65.98","retail_price":"79","available":true,"url":"\/products\/casual-straight-sleeve-knit-dress?variant=7e4efe20-8f5d-491b-92f7-5b5a2e21dfe6","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"one size"}],"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 `
`;
}()}