${function() {
const variantData = data.variant || {"id":"fa2f0592-88db-4c2c-8d3e-4f9e377b6965","product_id":"946bd073-da01-4be5-a7ee-f782b56e0c29","title":"Photo Color-S","weight_unit":"kg","inventory_quantity":1000,"sku":"PH1-220509-03-PhotoColor-S","barcode":"","position":1,"option1":"Photo Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/36b840921325056162a6fcf4eb272e8d.png","path":"36b840921325056162a6fcf4eb272e8d.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-casual-printed-polo-shirt-tdeh?variant=fa2f0592-88db-4c2c-8d3e-4f9e377b6965","available_quantity":1000,"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.