${function() {
const variantData = data.variant || {"id":"516af4a2-7d62-4335-bcde-ec48792c2160","product_id":"a7952cb1-4387-4b25-b051-3046fb83564f","title":"dark gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181865-dark gray-S","barcode":"","position":1,"option1":"dark gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d721817aa4bd94b8774a9a8d53528649.jpeg","path":"d721817aa4bd94b8774a9a8d53528649.jpeg","width":800,"height":800,"alt":"Drape Snow Cotton All-Match Casual Pants","aspect_ratio":1},"wholesale_price":[{"price":51.73,"min_quantity":1}],"weight":"0.3","compare_at_price":"90.75","price":"51.73","retail_price":"90.75","available":true,"url":"\/products\/drape-snow-cotton-all-match-casual-pants?variant=516af4a2-7d62-4335-bcde-ec48792c2160","available_quantity":999999999,"options":[{"name":"color","value":"dark gray"},{"name":"size","value":"S"}],"off_ratio":43,"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.