• Resolved paul55a

    (@paul55a)


    The following line in price.php is generating an error:

    $ppom_total_price = $total_addon_price + $product_base_price – $ppom_discount;

    From PHP:
    [05-Nov-2020 14:33:17 UTC] PHP Warning: A non-numeric value encountered in /wp-content/plugins/woocommerce-product-addon/inc/prices.php on line 43

    I’m using version 20.5

    Any assistance would be appreciated.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    better if you share the product page URL so can see what option price is being added?

    Thread Starter paul55a

    (@paul55a)

    The site is in development site, so link cannot be shared.

    I resolved my own problem modifying the price.php to include numeric checks on the variables in the calculation, and turned off auto update for the plugin.

    Thanks

    Ok good to hear this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in price.php’ is closed to new replies.