Closed joashrajin closed 2 years ago
This also just started happening on my site after upgrading to WooCommerce Paid Courses v3.13.3.2.6.0
4375258-zen
Hello @robertstaddon and @joashrajin,
can you try using the below snippet until we get a hotfix ready?
function remove_cart_notice() {
remove_action( 'woocommerce_add_to_cart', [ 'Sensei_WC', 'do_not_add_course_to_cart_if_user_taking_course' ], 10 );
}
add_action( 'woocommerce_add_to_cart', 'remove_cart_notice', 9 );
Please mind that this will remove all Sensei-related notices in the cart but at least will allow customers add the product.
Thank you for this! I have rolled all my Sensei sites back to v3.13.2.2.5.0 so I'll just hold on updating until the hotfix is released.
@gkaragia Thanks! I can confirm that the snippet fixes the problem :)
Hey folks! Thank you for reporting this! 👍
We just released a fix for WooCommerce Paid Courses. Any other related issues, feel free to answer here. 😉
When installing WooCommerce Paid Courses v3.13.3.2.6.0 on my fresh WC Site, I keep getting an error
'You are already taking all the courses associated with this product.'
when trying to add a product to my cart. This did not occur on my sites using3.13.1.2.5.0
, but all sites updated to3.13.3.2.6.0
are doing this.Steps to Reproduce
'You are already taking all the courses associated with this product.'
and the product won't be added to your cart3.13.1.2.5.0
fixes the problem.What I Expected
I expected to be able to add simple/variable products to my cart and that the site would function normally
What Happened Instead
I got an error message related to courses (which should not be linked to my simple product)
PHP / WordPress / Sensei LMS version
PHP: 8.0.11 WordPress: 5.8.1 Sensei LMS Version: 3.13.3 WooCommerce Paid Courses Version: 2.6.0
Browser / OS version
Chrome v94.0.4606.81 MacOS 11.6
Screenshot / Video
https://user-images.githubusercontent.com/16253818/137153333-2acb706c-7aa6-4075-98e0-2ed09cb316aa.mp4