${function() {
const variantData = data.variant || {"id":"e98a9619-22cb-45dc-9c22-d947d11d551d","product_id":"ac77b4c9-e60e-4daa-8eac-4aad26b6c68d","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241677-green-S","barcode":"","position":13,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3e17c6c9618560e873f8aaf5bbb11aae.jpeg","path":"3e17c6c9618560e873f8aaf5bbb11aae.jpeg","width":800,"height":800,"alt":"Cotton and linen thin all-match casual pants","aspect_ratio":1},"wholesale_price":[{"price":35.74,"min_quantity":1}],"weight":"0.4","compare_at_price":"44","price":"35.74","retail_price":"44","available":true,"url":"\/products\/cotton-and-linen-thin-all-match-casual-pants?variant=e98a9619-22cb-45dc-9c22-d947d11d551d","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"Size","value":"S"}],"off_ratio":19,"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.