@tonygao I was getting same notice. Simply update your WooCommerce to the latest version 8.0.0 and it will go away.
Thread Starter
kztab
(@kztab)
I mistakenly posted 2 lines of code commented, those are not commented in the actual wp-config.php file of course.