${function() {
const variantData = data.variant || {"id":"a06c3dd1-b2be-4aff-a62b-c7bfb6fb6fd1","product_id":"5ebefeef-be1d-470c-b79a-550da3831262","title":"Gray-S","weight_unit":"kg","inventory_quantity":999,"sku":"PH1-220602-25-Gray-S","barcode":"","position":3,"option1":"Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ccc119935e0d298ede74d092be73d6de.jpeg","path":"ccc119935e0d298ede74d092be73d6de.jpeg","width":1300,"height":1300,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.9,"min_quantity":1}],"weight":"0","compare_at_price":"22.9","price":"22.9","retail_price":"22.9","available":true,"url":"\/products\/mens-loose-linen-breathable-half-pants-mens-sports-casual-pants-7167447?variant=a06c3dd1-b2be-4aff-a62b-c7bfb6fb6fd1","available_quantity":999,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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.