${function() {
const variantData = data.variant || {"id":"ed52887d-997a-4528-8a1c-d1fdc0ac0bbf","product_id":"02095bfb-2b01-4557-82d5-c1b656bf861c","title":"Grey-M","weight_unit":"kg","inventory_quantity":995,"sku":"CP10090706046L09","barcode":"","position":9,"option1":"Grey","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/974c699b6ab391cab3751492825f8775.jpeg","path":"974c699b6ab391cab3751492825f8775.jpeg","width":440,"height":628,"alt":"","aspect_ratio":0.7006369426751592},"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=ed52887d-997a-4528-8a1c-d1fdc0ac0bbf","available_quantity":995,"options":[{"name":"color","value":"Grey"},{"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.