${function() {
const variantData = data.variant || {"id":"b569cff0-2319-4c04-a0e6-b58e8bdab8c1","product_id":"aff84b25-0004-4db0-854c-0c2502a110d1","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428442-white-S","barcode":"","position":11,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0b4e4836de784c50f7bbbd0b0c9b56a4.jpeg","path":"0b4e4836de784c50f7bbbd0b0c9b56a4.jpeg","width":800,"height":800,"alt":"Cotton linen tie casual cropped pants","aspect_ratio":1},"wholesale_price":[{"price":37.85,"min_quantity":1}],"weight":"0.3","compare_at_price":"46","price":"37.85","retail_price":"46","available":true,"url":"\/products\/cotton-linen-tie-casual-cropped-pants?variant=b569cff0-2319-4c04-a0e6-b58e8bdab8c1","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S"}],"off_ratio":18,"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.