${function() {
const variantData = data.variant || {"id":"3b83bba9-1867-4f1f-81ea-852af1cca5c6","product_id":"7b88b396-da7a-4a3b-915b-86f26964552a","title":"Brown-S","weight_unit":"g","inventory_quantity":99999,"sku":"102126990001","barcode":"","position":1,"option1":"Brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29076b1875f08c5176482427a6ce655e.jpeg","path":"29076b1875f08c5176482427a6ce655e.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"507","compare_at_price":"30.98","price":"29.99","retail_price":"30.98","available":true,"url":"\/products\/its-fine-im-fine-everything-is-fine-printed-women-s-hoodies?variant=3b83bba9-1867-4f1f-81ea-852af1cca5c6","available_quantity":99999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"S"}],"off_ratio":3,"flashsale_info":[],"sales":2};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"3b83bba9-1867-4f1f-81ea-852af1cca5c6","product_id":"7b88b396-da7a-4a3b-915b-86f26964552a","title":"Brown-S","weight_unit":"g","inventory_quantity":99999,"sku":"102126990001","barcode":"","position":1,"option1":"Brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29076b1875f08c5176482427a6ce655e.jpeg","path":"29076b1875f08c5176482427a6ce655e.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"507","compare_at_price":"30.98","price":"29.99","retail_price":"30.98","available":true,"url":"\/products\/its-fine-im-fine-everything-is-fine-printed-women-s-hoodies?variant=3b83bba9-1867-4f1f-81ea-852af1cca5c6","available_quantity":99999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"S"}],"off_ratio":3,"flashsale_info":[],"sales":2};
return `
`
}()}