${function() {
const variantData = data.variant || {"id":"a03f1e4f-8056-4795-b220-ec80eb632ec8","product_id":"a98e32e8-be68-4398-b8a9-0aff3a75960b","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"20120838-black-s","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ca3e6a1f6bf56cdeedb802e2ec4048d6.jpeg","path":"ca3e6a1f6bf56cdeedb802e2ec4048d6.jpeg","width":800,"height":1067,"alt":"","aspect_ratio":0.7497656982193065},"wholesale_price":[{"price":12.87,"min_quantity":1}],"weight":"0.3","compare_at_price":"15.14","price":"12.87","retail_price":"15.14","available":true,"url":"\/products\/christmas-snowflake-pattern-knitted-trousers-plus-velvet-stretch-967q?variant=a03f1e4f-8056-4795-b220-ec80eb632ec8","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.