${function() {
const variantData = data.variant || {"id":"22255d1a-a650-4376-9a81-d8e3f2a563cf","product_id":"515704dc-e530-4594-9eef-83a10f7e77ac","title":"NAVY-SMALL","weight_unit":"kg","inventory_quantity":1000,"sku":"9031809-NAVY-SMALL","barcode":"","position":1,"option1":"NAVY","option2":"SMALL","option3":"","note":"","image":null,"wholesale_price":[{"price":12.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12.99","retail_price":"0","available":true,"url":"\/products\/ball?variant=22255d1a-a650-4376-9a81-d8e3f2a563cf","available_quantity":999999999,"options":[{"name":"Color","value":"NAVY"},{"name":"Size","value":"SMALL"}],"off_ratio":0,"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.