${function() {
const variantData = data.variant || {"id":"49fa1246-c17d-460f-b0ee-135c71499a81","product_id":"930e3c10-ca20-4800-88ad-430cb3bd1927","title":"White-M","weight_unit":"g","inventory_quantity":500,"sku":"101252490001","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/059dd15a7076ccfbeb407836caafee14.jpeg","path":"059dd15a7076ccfbeb407836caafee14.jpeg","width":800,"height":800,"alt":"Loose Casual Breathable Solid Color Drawstring Shorts - ","aspect_ratio":1},"wholesale_price":[{"price":27.98,"min_quantity":1}],"weight":"300","compare_at_price":"39.98","price":"27.98","retail_price":"39.98","available":true,"url":"\/products\/loose-casual-breathable-solid-color-drawstring-shorts?variant=49fa1246-c17d-460f-b0ee-135c71499a81","available_quantity":500,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":15};
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.
${function(){
const variantData = data.variant || {"id":"49fa1246-c17d-460f-b0ee-135c71499a81","product_id":"930e3c10-ca20-4800-88ad-430cb3bd1927","title":"White-M","weight_unit":"g","inventory_quantity":500,"sku":"101252490001","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/059dd15a7076ccfbeb407836caafee14.jpeg","path":"059dd15a7076ccfbeb407836caafee14.jpeg","width":800,"height":800,"alt":"Loose Casual Breathable Solid Color Drawstring Shorts - ","aspect_ratio":1},"wholesale_price":[{"price":27.98,"min_quantity":1}],"weight":"300","compare_at_price":"39.98","price":"27.98","retail_price":"39.98","available":true,"url":"\/products\/loose-casual-breathable-solid-color-drawstring-shorts?variant=49fa1246-c17d-460f-b0ee-135c71499a81","available_quantity":500,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":15};
return `
`
}()}