${function() {
const variantData = data.variant || {"id":"4605b1ba-7d51-4164-8e2a-8243d54e5dfa","product_id":"3abc4a29-2f28-4bae-8514-db881d7f2fa9","title":"Green-M","weight_unit":"kg","inventory_quantity":998,"sku":"YP2404077472-Green-M","barcode":"","position":1,"option1":"Green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ffae3984e83b6677b4feb04fb068999f.png","path":"ffae3984e83b6677b4feb04fb068999f.png","width":640,"height":800,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":52.99,"min_quantity":1}],"weight":"0","compare_at_price":"89","price":"52.99","retail_price":"89","available":true,"url":"\/products\/mens-v-neck-luxury-colorblock-textured-print-shorts-set-119e0446547-393c-4854-8154-80fe904b37d2?variant=4605b1ba-7d51-4164-8e2a-8243d54e5dfa","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"M"}],"off_ratio":40,"flashsale_info":[],"sales":7};
const saveType = "amount";
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.