${function() {
const variantData = data.variant || {"id":"46efc6f6-a2ec-4d63-978e-aeee249d8691","product_id":"df5bd18b-8520-406a-ba56-e7369862e003","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230310408-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4dae5d6368cad74dcea163d5303af352.jpeg","path":"4dae5d6368cad74dcea163d5303af352.jpeg","width":800,"height":800,"alt":"Short-sleeved button-up linen shirt","aspect_ratio":1},"wholesale_price":[{"price":38.65,"min_quantity":1}],"weight":"0.2","compare_at_price":"43","price":"38.65","retail_price":"43","available":true,"url":"\/products\/short-sleeved-button-up-linen-shirt?variant=46efc6f6-a2ec-4d63-978e-aeee249d8691","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"S"}],"off_ratio":10,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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.