${function() {
const variantData = data.variant || {"id":"fc821fb3-f66b-47ff-92bc-f749e7485f46","product_id":"63f510b2-a7eb-47ca-a7ea-7c6493f4ae33","title":"Green-S","weight_unit":"g","inventory_quantity":998,"sku":"X131-230810-08-8H5BJMAQGF-Green-S","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bda9903bd90364d0f56b49b02df45240.jpeg","path":"bda9903bd90364d0f56b49b02df45240.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":46.99,"min_quantity":1}],"weight":"500","compare_at_price":"46.99","price":"46.99","retail_price":"46.99","available":true,"url":"\/products\/mens-long-fashion-casual-coat?variant=fc821fb3-f66b-47ff-92bc-f749e7485f46","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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.