${function() {
const variantData = data.variant || {"id":"e233c4d5-61c1-445b-a91e-209ee7c7eeec","product_id":"2057680a-fc50-4a94-a4ff-9c8ed65d37f2","title":"RED","weight_unit":"kg","inventory_quantity":1000,"sku":"AFGM001","barcode":"","position":1,"option1":"RED","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b2ec737c909afb915ac9ff7b475bd554.jpeg","path":"b2ec737c909afb915ac9ff7b475bd554.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29.99","retail_price":"0","available":true,"url":"\/products\/led-message-hat?variant=e233c4d5-61c1-445b-a91e-209ee7c7eeec","available_quantity":999999999,"options":[{"name":"Color","value":"RED"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
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}
`
}()}
Product was out of stock.
Product is unavailable.