WooCommerce released new 3.0 version couple of weeks ago and they updated lots of things in that version. Last year, I’ve two premium WooCommerce plugin ( Attachment Tab For Woocommerce, WooCommerce Product FAQ Manager ) in CodeCanYon marketplace. After upgrading WooCommerce version 3.0 buyers send me support message regarding that notice. So, I need to update the plugins and remove notice from single product page.
Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘D:\xampp\htdocs\dev.woo.plug\wpfm\wp-blog-header.php’),
I’ve solved this notice by changing a single line of code.
Just replace $product->id text by $product->get_id()
And you’re done. Hope that tips will help you.
Thank You !