${function() {
const variantData = data.variant || {"id":"5c230996-92bb-4375-9fa7-d560eb35cb6d","product_id":"f93fa49f-b36e-4722-99a4-6c357fa2c8db","title":"white-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21041427-white-s","barcode":"","position":1,"option1":"white","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/45dfb7b60c7cc1d183bab5bdf5445e43.jpeg","path":"45dfb7b60c7cc1d183bab5bdf5445e43.jpeg","width":1200,"height":1600,"alt":"Casual High Waist Self-tie Short Pants","aspect_ratio":0.75},"wholesale_price":[{"price":24.15,"min_quantity":1}],"weight":"0","compare_at_price":"47.35","price":"24.15","retail_price":"47.35","available":true,"url":"\/products\/casual-high-waist-self-tie-short-pants-k8c4?variant=5c230996-92bb-4375-9fa7-d560eb35cb6d","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"s"}],"off_ratio":49,"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.