${function() {
const variantData = data.variant || {"id":"b1378065-13b5-4c4e-8b56-40070a9c5012","product_id":"55fed00e-f968-4bf9-b910-27534f87a62e","title":"yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428454-yellow-S","barcode":"","position":7,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/28ab8b246d9a1686a795d22ce43ae4ea.jpeg","path":"28ab8b246d9a1686a795d22ce43ae4ea.jpeg","width":800,"height":800,"alt":"Elastic waist cotton linen cropped pants","aspect_ratio":1},"wholesale_price":[{"price":38.59,"min_quantity":1}],"weight":"0.3","compare_at_price":"48","price":"38.59","retail_price":"48","available":true,"url":"\/products\/elastic-waist-cotton-linen-cropped-pants?variant=b1378065-13b5-4c4e-8b56-40070a9c5012","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"Size","value":"S"}],"off_ratio":20,"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.