Support » Plugin: WooCommerce Product Fees » Not work with 0,000xxx product fees

  • terenziconcept

    (@terenziconcept)


    Hi,

    I put the extra fees in a single product.
    the fees is 0,000192. with option to multiply cost activated

    If I try to buy 300 quantity of product (for example) the fees is not show on cart and checkout page.

    I think that there is problem with 0,000xxx price

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • devman001

    (@devman001)

    Its happening to me too. If i add 0,77 it doesnt work.

    devman001

    (@devman001)

    @icaleb not any word about a fix for it? I cant use the plugi yet :/

    Also have this issue.
    for example 1,5 is working, 0,5 no

    • This reply was modified 2 years, 11 months ago by silenx.

    Temporary fix for people with my issue.
    This solution seem working.

    file class-woocommerce-product-fees.php

    line 52 must be:
    if ( ” !== $fee_name && ” !== $fee_amount && $fee_amount >= 0 ) {

    difference is “the greater than or equal to” comparison operator.
    Original one was only the major.

    Now is working with 0,XXX value

    • This reply was modified 2 years, 11 months ago by silenx.

    @silenx thanks for the fix. i found a php code solution temporarly that works and dont need plugin. But i will use yours one when i need it while dev updates his plugin.

    Thanks @silenx, this fixed it for me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not work with 0,000xxx product fees’ is closed to new replies.