${function() {
const variantData = data.variant || {"id":"f828f9d2-a7a4-489b-bc4c-3d5d7ced400b","product_id":"16e965a1-0e58-4ce1-b8d3-048372f5900f","title":"Dark Blue-M","weight_unit":"kg","inventory_quantity":999,"sku":"SP220418S72Q-96352352","barcode":"","position":3,"option1":"Dark Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9ae84220d83f095d351df56b1b0c5122.jpeg","path":"9ae84220d83f095d351df56b1b0c5122.jpeg","width":454,"height":454,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.9,"min_quantity":1}],"weight":"0","compare_at_price":"27.9","price":"27.9","retail_price":"27.9","available":true,"url":"\/products\/mens-linen-loose-drawstring-hip-hop-lantern-pencil-pants-7182478?variant=f828f9d2-a7a4-489b-bc4c-3d5d7ced400b","available_quantity":999,"options":[{"name":"Color","value":"Dark Blue"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":44};
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.