${function() {
const variantData = data.variant || {"id":"ebca52df-960e-43a4-adc9-bcada7e71ddd","product_id":"da8a2d53-83ab-4a0b-9939-03af9ca2fa75","title":"White-S","weight_unit":"kg","inventory_quantity":1000,"sku":"211215-201-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/14252dc2a7c8d3fae3100d9b67bb39d8.jpeg","path":"14252dc2a7c8d3fae3100d9b67bb39d8.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/chain-decor-cold-shoulder-fluffy-sweater?variant=ebca52df-960e-43a4-adc9-bcada7e71ddd","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"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.