${function() {
const variantData = data.variant || {"id":"56b99525-c778-4c24-a08a-daa730eecac4","product_id":"ace99926-5340-4c21-8211-993a9e009bf9","title":"Green-S","weight_unit":"kg","inventory_quantity":9882,"sku":"221027890-Green-S","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c1795d773dd766abb170b09c597c0e18.jpeg","path":"c1795d773dd766abb170b09c597c0e18.jpeg","width":800,"height":800,"alt":"Square Neck Slim Knit Sweater with Long Sleeves Top","aspect_ratio":1},"wholesale_price":[{"price":32.98,"min_quantity":1}],"weight":"0.3","compare_at_price":"61.07","price":"32.98","retail_price":"61.07","available":true,"url":"\/products\/square-neck-slim-knit-sweater-with-long-sleeves-top?variant=56b99525-c778-4c24-a08a-daa730eecac4","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":46,"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.