${function() {
const variantData = data.variant || {"id":"af378904-57e4-4d95-8703-ec9fd2f52d91","product_id":"498f6fd0-c935-471b-8bab-211f2f90a751","title":"Green-S","weight_unit":"kg","inventory_quantity":992,"sku":"12535097-Green-S","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18918e8c4d44c9f7eeb7cb75af97c9f4.png","path":"18918e8c4d44c9f7eeb7cb75af97c9f4.png","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.63,"min_quantity":1}],"weight":"0","compare_at_price":"26.98","price":"25.63","retail_price":"26.98","available":true,"url":"\/products\/casual-striped-shirts-tops-12535097-variant-28123?variant=af378904-57e4-4d95-8703-ec9fd2f52d91","available_quantity":992,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":5,"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.