${function() {
const variantData = data.variant || {"id":"2c01aaa3-f00d-47c0-9aec-f61b616c109d","product_id":"870631f4-5b4a-4371-8197-2ca31e2c1029","title":"Khaki-M","weight_unit":"kg","inventory_quantity":996,"sku":"PH1-220627-42-Khaki-M","barcode":"","position":8,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/307ef857e2118ea7901e28f724b0c5d7.png","path":"307ef857e2118ea7901e28f724b0c5d7.png","width":596,"height":795,"alt":"","aspect_ratio":0.7496855345911949},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/casual-cotton-and-linen-casual-casual-pants?variant=2c01aaa3-f00d-47c0-9aec-f61b616c109d","available_quantity":996,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":39};
const saveType = "amount";
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.