Support » Plugin: Quantities and Units for WooCommerce » Decimal quantity in cart

  • athineos

    (@athineos)


    Although in the single product decimals work properly, in the shhoping cart appears only the integer on basis of which is calculated the total value. For example when I enter a quantity of 22,2 sq meters @ 17 Euros, in the shopping cart the quantity comes as 22 with a total value 374. Of course I can change the quatity in the shopping card to be 22,2 but this is not a proper solution.

    Does anybody has an idea how to fix this issue?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • If i understand you right try to edit this file: “/wp-content/plugins/quantities-and-units-for-woocommerce/assets/js/ipq_input_value_validation.js”

    and add this line:
    new_qty = parseFloat(new_qty).toFixed(2);
    between line 24 and 25

Viewing 1 replies (of 1 total)
  • The topic ‘Decimal quantity in cart’ is closed to new replies.