${function() {
const variantData = data.variant || {"id":"2c2a7081-387a-465c-8a3e-543afe0e005c","product_id":"ad02b945-b023-462e-afcf-8fbe61a311a7","title":"pink-S","weight_unit":"kg","inventory_quantity":0,"sku":"662305151240-pink-S","barcode":"","position":1,"option1":"pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a874a4abe8909189b6462d3316e685d3.jpeg","path":"a874a4abe8909189b6462d3316e685d3.jpeg","width":800,"height":1000,"alt":"Casual Printed Resort Chic Shorts Set","aspect_ratio":0.8},"wholesale_price":[{"price":46.72,"min_quantity":1}],"weight":"0.35","compare_at_price":"61","price":"46.72","retail_price":"61","available":true,"url":"\/products\/casual-printed-resort-chic-shorts-set?variant=2c2a7081-387a-465c-8a3e-543afe0e005c","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"S"}],"off_ratio":23,"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.