${function() {
const variantData = data.variant || {"id":"d1895d2d-723f-470d-884a-262b8900d5f0","product_id":"3fd3e8c5-0e1c-4699-933e-69e5100c71dc","title":"Pale Denim-S","weight_unit":"g","inventory_quantity":764,"sku":"SKU102396270001","barcode":"","position":1,"option1":"Pale Denim","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b15051005375ab95c82239a9c8719d3.jpeg","path":"1b15051005375ab95c82239a9c8719d3.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"180","compare_at_price":"22.98","price":"15.98","retail_price":"22.98","available":true,"url":"\/products\/bohemian-pattern-print-womens-tank-top?variant=d1895d2d-723f-470d-884a-262b8900d5f0","available_quantity":764,"options":[{"name":"Color","value":"Pale Denim"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":0};
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":"d1895d2d-723f-470d-884a-262b8900d5f0","product_id":"3fd3e8c5-0e1c-4699-933e-69e5100c71dc","title":"Pale Denim-S","weight_unit":"g","inventory_quantity":764,"sku":"SKU102396270001","barcode":"","position":1,"option1":"Pale Denim","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b15051005375ab95c82239a9c8719d3.jpeg","path":"1b15051005375ab95c82239a9c8719d3.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"180","compare_at_price":"22.98","price":"15.98","retail_price":"22.98","available":true,"url":"\/products\/bohemian-pattern-print-womens-tank-top?variant=d1895d2d-723f-470d-884a-262b8900d5f0","available_quantity":764,"options":[{"name":"Color","value":"Pale Denim"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
`
}()}