Support » Plugin: Product Feed PRO for WooCommerce » A non-numeric value encountered in …

  • Resolved adryyy

    (@adryyy)


    I got these warning in error log: PHP Warning: A non-numeric value encountered in /home/cumparok/public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php

    for the line

    $product_data['price_forced'] = wc_format_localized_price( wc_get_price_excluding_tax($product,array('price'=> $product->get_price())) * (100+$tax_rates[1]['rate'])/100);
    $product_data['regular_price_forced'] = wc_format_localized_price(wc_get_price_excluding_tax($product, array('price'=> $product->get_regular_price())) + (100+$tax_rates[1]['rate'])/100);
    

    I think this warning appears from products without price, but can’t guarantee.

    • This topic was modified 1 year ago by  adryyy.
Viewing 1 replies (of 1 total)
  • Plugin Contributor AdTribes.io Support Team

    (@evavangelooven)

    Hi adryyy,

    We have tried replicating the issue but are not getting the warnings in our error log. Products without a price are not causing the warnings at our end.

    Since we cannot reproduce it I will close the issue for now. Please reach out if you have another suggestion 🙂

    All the best,
    Eva

Viewing 1 replies (of 1 total)
  • The topic ‘A non-numeric value encountered in …’ is closed to new replies.