${function() {
const variantData = data.variant || {"id":"04132e07-fcfe-49c3-9543-84b76c9e04fa","product_id":"35bc886b-1071-47db-b174-4f1b3c617bcd","title":"light gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662209192566-light gray-S","barcode":"","position":1,"option1":"light gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b490e69404c030ed4edc91e0be29a923.jpeg","path":"b490e69404c030ed4edc91e0be29a923.jpeg","width":790,"height":990,"alt":"women's drape loose wide leg trousers","aspect_ratio":0.797979797979798},"wholesale_price":[{"price":31.68,"min_quantity":1}],"weight":"0.3","compare_at_price":"51.14","price":"31.68","retail_price":"51.14","available":true,"url":"\/products\/womens-drape-loose-wide-leg-trousers?variant=04132e07-fcfe-49c3-9543-84b76c9e04fa","available_quantity":999999999,"options":[{"name":"color","value":"light gray"},{"name":"size","value":"S"}],"off_ratio":38,"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.