${function() {
const variantData = data.variant || {"id":"f6272eb2-0b01-47c6-8e74-85d42430dc0e","product_id":"01d7ff18-3477-462e-859b-4f884cb6dc83","title":"Dual Lens","weight_unit":"kg","inventory_quantity":1000,"sku":"EC46546-X38187","barcode":"","position":1,"option1":"Dual Lens","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/high-quality-dash-cams?variant=f6272eb2-0b01-47c6-8e74-85d42430dc0e","available_quantity":999999999,"options":[{"name":"Style","value":"Dual Lens"}],"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.