${function() {
const variantData = data.variant || {"id":"9d5ea0b0-9a38-4bf7-830d-bbb91736db68","product_id":"8dd52a1b-359e-4008-a8bc-39e34cd31bf1","title":"Purple-L","weight_unit":"kg","inventory_quantity":998,"sku":"220514432-Purple-L","barcode":"","position":9,"option1":"Purple","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/917081e7431ee5804f7fa384a5bcd3f9.jpeg","path":"917081e7431ee5804f7fa384a5bcd3f9.jpeg","width":666,"height":702,"alt":"Casual Loose Shape Short Set","aspect_ratio":0.9487179487179487},"wholesale_price":[{"price":34.75,"min_quantity":1}],"weight":"0","compare_at_price":"53","price":"34.75","retail_price":"53","available":true,"url":"\/products\/casual-loose-shape-short-set-t4kv?variant=9d5ea0b0-9a38-4bf7-830d-bbb91736db68","available_quantity":999999999,"options":[{"name":"COLOR","value":"Purple"},{"name":"Size","value":"L"}],"off_ratio":34,"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}
`
}()}
Product was out of stock.
Product is unavailable.