Slouchy knitted sweater vest
${function() {
const variantData = data.variant || {"id":"5ff85832-9044-4835-ba0f-83c8edb9d095","product_id":"5f6b7765-80a5-4512-bf2f-8950b84ddc20","title":"gray-one size","weight_unit":"kg","inventory_quantity":0,"sku":"66221018242-gray-one size","barcode":"","position":1,"option1":"gray","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e89a50541b7475528ae3d2303bb57995.jpeg","path":"e89a50541b7475528ae3d2303bb57995.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.78,"min_quantity":1}],"weight":"0.45","compare_at_price":"70.33","price":"59.78","retail_price":"70.33","available":true,"url":"\/products\/slouchy-knitted-sweater-vest?variant=5ff85832-9044-4835-ba0f-83c8edb9d095","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"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":"5ff85832-9044-4835-ba0f-83c8edb9d095","product_id":"5f6b7765-80a5-4512-bf2f-8950b84ddc20","title":"gray-one size","weight_unit":"kg","inventory_quantity":0,"sku":"66221018242-gray-one size","barcode":"","position":1,"option1":"gray","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e89a50541b7475528ae3d2303bb57995.jpeg","path":"e89a50541b7475528ae3d2303bb57995.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.78,"min_quantity":1}],"weight":"0.45","compare_at_price":"70.33","price":"59.78","retail_price":"70.33","available":true,"url":"\/products\/slouchy-knitted-sweater-vest?variant=5ff85832-9044-4835-ba0f-83c8edb9d095","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"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 `
`;
}()}