${function() {
const variantData = data.variant || {"id":"a3551e28-4fe7-479c-b93f-7f6b19b4b635","product_id":"fff3222b-be60-4da4-bb1a-013614f4f288","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"MS040343-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3d6a1a0ba048f3263a32b1f29c6fc54d.jpeg","path":"3d6a1a0ba048f3263a32b1f29c6fc54d.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"26.99","price":"26.99","retail_price":"26.99","available":true,"url":"\/products\/mens-hawaiian-mermaid-print-casual-shirt?variant=a3551e28-4fe7-479c-b93f-7f6b19b4b635","available_quantity":999,"options":[{"name":"Color","value":"Black"},{"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.