Casual Single Breasted V-Neck Sweater
${function() {
const variantData = data.variant || {"id":"57a1bb1f-fdf4-411b-946f-a8ad68493985","product_id":"12855028-bea9-417b-9286-a3924991317f","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221021475-black-S","barcode":"","position":6,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fa88913f9720f1ec7cd29d6d35647933.jpeg","path":"fa88913f9720f1ec7cd29d6d35647933.jpeg","width":753,"height":839,"alt":"","aspect_ratio":0.8974970202622169},"wholesale_price":[{"price":50.26,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.83","price":"50.26","retail_price":"59.83","available":true,"url":"\/products\/casual-single-breasted-v-neck-sweater?variant=57a1bb1f-fdf4-411b-946f-a8ad68493985","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":16,"flashsale_info":[],"sales":37};
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":"57a1bb1f-fdf4-411b-946f-a8ad68493985","product_id":"12855028-bea9-417b-9286-a3924991317f","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221021475-black-S","barcode":"","position":6,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fa88913f9720f1ec7cd29d6d35647933.jpeg","path":"fa88913f9720f1ec7cd29d6d35647933.jpeg","width":753,"height":839,"alt":"","aspect_ratio":0.8974970202622169},"wholesale_price":[{"price":50.26,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.83","price":"50.26","retail_price":"59.83","available":true,"url":"\/products\/casual-single-breasted-v-neck-sweater?variant=57a1bb1f-fdf4-411b-946f-a8ad68493985","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":16,"flashsale_info":[],"sales":37};
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 `
`;
}()}