[ad_1]
Hi!
I get these php warnings into my error_log file every time when the feed updates, can you please give directions where to start to look to resolve this warnings?
[28-Apr-2023 08:00:24 UTC] PHP Warning: Undefined array key "net_regular_price" in x/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 3611
[28-Apr-2023 08:00:24 UTC] PHP Warning: Undefined array key "net_sale_price" in x/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 3612The feed can not get the price for the products? The feed have the prices if I open.
// Google Dynamic Remarketing feeds require the English price notation - upper comment
//3611
$product_data['net_regular_price'] = floatval(str_replace(',', '.', str_replace('.', '', $product_data['net_regular_price'])));
//3612 $product_data['net_sale_price'] = floatval(str_replace(',', '.', str_replace('.', '', $product_data['net_sale_price'])));I use the latest wordpress – woocommerce – product feed pro plugin.
The prices shows as “9.380,00 eur” and on some products we have an after price text “9.380,00 eur /m“.
Thank you very much!
