php warnings – after the feed update – for regular price – sale price

[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 3612

The 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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer