${function() {
const variantData = data.variant || {"id":"d7fe0779-8a75-4cd0-8c23-9ac9d37ad57e","product_id":"77cacd34-e72c-40ae-a331-387e30d53679","title":"red-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428444-red-S","barcode":"","position":13,"option1":"red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe445e73e4733b955654e26b3a272554.jpeg","path":"fe445e73e4733b955654e26b3a272554.jpeg","width":990,"height":990,"alt":"Cotton Linen Loose Casual Cropped Pants","aspect_ratio":1},"wholesale_price":[{"price":33.57,"min_quantity":1}],"weight":"0.3","compare_at_price":"42","price":"33.57","retail_price":"42","available":true,"url":"\/products\/cotton-linen-loose-casual-cropped-pants?variant=d7fe0779-8a75-4cd0-8c23-9ac9d37ad57e","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"S"}],"off_ratio":20,"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.