${function() {
const variantData = data.variant || {"id":"8cafa95a-bb05-4bab-86d6-3bd33d9bd12a","product_id":"b479d8c2-c9e1-4779-87af-621f59efc1e0","title":"Beige-S","weight_unit":"kg","inventory_quantity":999,"sku":"SW96FB675C7B","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7ade61548fc81415f730d837f016c71e.jpeg","path":"7ade61548fc81415f730d837f016c71e.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/casual-knitted-fall-shift-sweater?variant=8cafa95a-bb05-4bab-86d6-3bd33d9bd12a","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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.