Portable calculator with writing version
${function() {
const variantData = data.variant || {"id":"3d7453f6-c74e-487a-919c-a2b2773c2ec7","product_id":"d4aebc26-08e0-43e1-b4a2-0e674c9ee2b2","title":"Ordinary 5.0-inch battery model","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Ordinary 5.0-inch battery model","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"26.99","retail_price":"39.99","available":true,"url":"\/products\/calculator?variant=3d7453f6-c74e-487a-919c-a2b2773c2ec7","available_quantity":999999999,"options":[{"name":"Style","value":"Ordinary 5.0-inch battery model"}],"off_ratio":33,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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.