• Resolved Kimball31

    (@kimball31)


    When we click add to cart on some products this warning showed up:

    Warning: A non-numeric value encountered in /xxxxxx/wp-content/plugins/innozilla-per-product-shipping-woocommerce/includes/ippsw-class-wc-shipping-per-product.php on line 156

    The error went away after I made sure all products had “line cost” = 0 (some were blank), and set plugin default fees to 0.

    Site: https://www.store.notchhostel.com/
    Plugin Version 1.0.1
    WP Version 5.4.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author innozilla

    (@innozilla)

    Hi @kimball31

    Thank you for using the plugin..

    RE: The error went away after I made sure all products had “line cost” = 0 (some were blank), and set plugin default fees to 0.
    > You don’t need to add 0 to line cost as well as fees. i think this is a theme/plugin conflict.

    what plugins did you installs? so that we can investigate.

    Immediate Solution:
    -Try deactivating some plugins and test if still got an error. or try changing a default theme and check if it still got an error. also update WooCommerce to latest version.

    PS: have tested this to a lots of website and it worked well. but if this is really a bug on the plugin. we will fix it and update this on the next release.

    Thanks

    Plugin Author innozilla

    (@innozilla)

    I think this issue has been resolve.

    reason: 3rd party plugin conflict
    solution: deactivating some plugin, theme and check if the problem is fixed.

    note: please use accredited WooCommerce extension. ( code standards )

    Thank you

    Thread Starter Kimball31

    (@kimball31)

    If you leave “line cost” empty, you get the “non-numeric value” error.

    The work around we found was to make sure all “line cost” had a value. We use 0, and that worked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: A non-numeric value encountered’ is closed to new replies.