${function() {
const variantData = data.variant || {"id":"0bef7a0a-ab54-49dd-816a-da8ab43bb977","product_id":"02095bfb-2b01-4557-82d5-c1b656bf861c","title":"Navy green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"CP10090706046L05","barcode":"","position":5,"option1":"Navy green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/687c5a5a3e2a8d7a5eb3ab724254dfa4.jpeg","path":"687c5a5a3e2a8d7a5eb3ab724254dfa4.jpeg","width":432,"height":618,"alt":"","aspect_ratio":0.6990291262135923},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"19.99","retail_price":"21.99","available":true,"url":"\/products\/sketch-tank-top?variant=0bef7a0a-ab54-49dd-816a-da8ab43bb977","available_quantity":1000,"options":[{"name":"color","value":"Navy green"},{"name":"size","value":"M"}],"off_ratio":9,"flashsale_info":[],"sales":1};
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.