Not supporting float/decimal numbers
-
Consider changing the following:
/js/price/ppom-price-v2.js
//js/price/ppom-price.js
To support decimal/float quantities. A site I am working on currently supports decimal quantities but your plugin converts quantities to whole Integers.
v2 Line 39:
get_product_qty: function() { const quantity = this.dom_product_qty.val() || 0; return parseFloat(quantity); },
v1 Line 1017:
function ppom_get_order_quantity() { var quantity = ppom_input_vars.is_shortcode === 'yes' ? 1 : wc_product_qty.val(); quantity = quantity || 1; return parseFloat(quantity); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not supporting float/decimal numbers’ is closed to new replies.