Fixing WooCommerce 3.0 notice in single product page

WooCommerce released a new 3.0 version a couple of weeks ago and updated many things. Last year, I’ve two premium WooCommerce plugins ( Attachment Tab For Woocommerce, WooCommerce Product FAQ Manager ) in the CodeCanYon marketplace.

After upgrading the WooCommerce version, 3.0 buyers send me a support message regarding that notice. So, I need to update the plugins and remove notices from the 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 that notice by updating a single line of code in the plugin. So, go to you code and replace $product->id text by $product->get_id()

And that’s it. Super easy! Right? I hope that quick tips will help you to fix WooCommerce 3.0 notice.

Happy coding!

Total 0 Votes

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Leave a Comment

Back To Top