${function() {
const variantData = data.variant || {"id":"33b4da01-ed0b-42b2-8517-fdaad9467488","product_id":"db26d0ea-c4f6-46a5-95ab-ea3505122479","title":"Gray-M","weight_unit":"kg","inventory_quantity":1000,"sku":"20230506-H01-Gray-M","barcode":"","position":1,"option1":"Gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d11e15e9244841694b900f80c6f44eee.jpg","path":"d11e15e9244841694b900f80c6f44eee.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/casual-crew-neck-solid-sweater?variant=33b4da01-ed0b-42b2-8517-fdaad9467488","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"M"}],"off_ratio":0,"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.