${function() {
const variantData = data.variant || {"id":"d5bb703c-8716-4827-9a8e-b74a673a35ff","product_id":"b9931446-a92d-4722-85f9-b447ce4ab961","title":"hemp-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230510963-hemp-S","barcode":"","position":6,"option1":"hemp","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b3fc10b809fd4bc8757da3551467dba5.jpeg","path":"b3fc10b809fd4bc8757da3551467dba5.jpeg","width":800,"height":800,"alt":"Casual thin cotton linen jacket","aspect_ratio":1},"wholesale_price":[{"price":45.89,"min_quantity":1}],"weight":"0.3","compare_at_price":"54","price":"45.89","retail_price":"54","available":true,"url":"\/products\/casual-thin-cotton-linen-jacket?variant=d5bb703c-8716-4827-9a8e-b74a673a35ff","available_quantity":999999999,"options":[{"name":"color","value":"hemp"},{"name":"size","value":"S"}],"off_ratio":15,"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.