${function() {
const variantData = data.variant || {"id":"d3a9a990-a32f-4dce-adf1-dc6ed094f6a8","product_id":"f466a9dd-9c72-4519-ade4-1215bf1996d2","title":"yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230504619-yellow-S","barcode":"","position":1,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4edc0d2354248f54a8f8e28daca4b506.jpeg","path":"4edc0d2354248f54a8f8e28daca4b506.jpeg","width":800,"height":800,"alt":"Relaxed cotton linen loose trousers","aspect_ratio":1},"wholesale_price":[{"price":37.59,"min_quantity":1}],"weight":"0.45","compare_at_price":"45","price":"37.59","retail_price":"45","available":true,"url":"\/products\/relaxed-cotton-linen-loose-trousers?variant=d3a9a990-a32f-4dce-adf1-dc6ed094f6a8","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"Size","value":"S"}],"off_ratio":16,"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.