${function() {
const variantData = data.variant || {"id":"578af4ce-e527-4b30-b40f-ccbc1581c6dc","product_id":"5eeb5679-5ac6-4702-a9db-615b0dee8886","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230506771-black-S","barcode":"","position":13,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00d235fcf81c20d2d8df010c736b0d5c.jpeg","path":"00d235fcf81c20d2d8df010c736b0d5c.jpeg","width":800,"height":800,"alt":"Cotton and linen cropped thin casual pants","aspect_ratio":1},"wholesale_price":[{"price":34.59,"min_quantity":1}],"weight":"0.3","compare_at_price":"43","price":"34.59","retail_price":"43","available":true,"url":"\/products\/cotton-and-linen-cropped-thin-casual-pants?variant=578af4ce-e527-4b30-b40f-ccbc1581c6dc","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.