Elegant Short Version Sweater Cardigan
${function() {
const variantData = data.variant || {"id":"3bb08c35-db61-42be-89ad-02b811b9ed50","product_id":"0b72a96b-3bee-4189-8c8b-44f38553656a","title":"Yellow-One Size(45-60KG)","weight_unit":"kg","inventory_quantity":60705,"sku":"221027870-Yellow-One Size(45-60KG)","barcode":"","position":2,"option1":"Yellow","option2":"One Size(45-60KG)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c9007eea0eb920d7299e00e4a75b6bae.jpeg","path":"c9007eea0eb920d7299e00e4a75b6bae.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.4,"min_quantity":1}],"weight":"0.4","compare_at_price":"48.64","price":"39.4","retail_price":"48.64","available":true,"url":"\/products\/elegant-short-version-sweater-cardigan?variant=3bb08c35-db61-42be-89ad-02b811b9ed50","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"One Size(45-60KG)"}],"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":"3bb08c35-db61-42be-89ad-02b811b9ed50","product_id":"0b72a96b-3bee-4189-8c8b-44f38553656a","title":"Yellow-One Size(45-60KG)","weight_unit":"kg","inventory_quantity":60705,"sku":"221027870-Yellow-One Size(45-60KG)","barcode":"","position":2,"option1":"Yellow","option2":"One Size(45-60KG)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c9007eea0eb920d7299e00e4a75b6bae.jpeg","path":"c9007eea0eb920d7299e00e4a75b6bae.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.4,"min_quantity":1}],"weight":"0.4","compare_at_price":"48.64","price":"39.4","retail_price":"48.64","available":true,"url":"\/products\/elegant-short-version-sweater-cardigan?variant=3bb08c35-db61-42be-89ad-02b811b9ed50","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"One Size(45-60KG)"}],"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 `
`;
}()}