${function() {
const variantData = data.variant || {"id":"1fbf8836-37a2-401d-9bb1-e84e6e06e6c4","product_id":"07fa7a5c-a4b4-4541-bc7f-988440d22da7","title":"White-M","weight_unit":"kg","inventory_quantity":996,"sku":"SYV005375_W_M","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5117879d7833cb6586428981f7c17252.jpeg","path":"5117879d7833cb6586428981f7c17252.jpeg","width":768,"height":1024,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":46.99,"min_quantity":1}],"weight":"0","compare_at_price":"46.99","price":"46.99","retail_price":"46.99","available":true,"url":"\/products\/casual-loose-fit-t-shirt-set?variant=1fbf8836-37a2-401d-9bb1-e84e6e06e6c4","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":19};
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.