${function() {
const variantData = data.variant || {"id":"f74efe6e-05ee-4d19-b396-a1a089f73d91","product_id":"ce5b4e70-e307-4c1e-acbb-1b7abc22b03a","title":"Photo Color-S","weight_unit":"kg","inventory_quantity":992,"sku":"PH1-220502-47-PhotoColor-S","barcode":"","position":1,"option1":"Photo Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0989604e911488d4195fb0533af316ac.png","path":"0989604e911488d4195fb0533af316ac.png","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":28.22,"min_quantity":1}],"weight":"0","compare_at_price":"28.22","price":"28.22","retail_price":"28.22","available":true,"url":"\/products\/mens-gradient-colorblock-polo-shirt?variant=f74efe6e-05ee-4d19-b396-a1a089f73d91","available_quantity":992,"options":[{"name":"Color","value":"Photo Color"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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.