-
Add to cart on .btn-join adds 2 products
Hi everyone,
I’m trying to implement WooCommerce in my LearnDash website.
I don’t want to use product pages, only course pages. So, I want that, when people click on “Join this course” (when clicking on .btn-join) on course page, it directly adds it to cart.
So I followed this tut : https://www.learndash.com/support/docs/add-ons/woocommerce/#set-up-your-course, but when I click, it adds 1 product to cart and redirects to home page. So I decided to set the URL to :
https://website.com/courses/{course-name}?add-to-cart={id}
in order to stay on the same page, which is very close from working, but the one and only problem is that it adds twice the course to my cart, which is problematic. Any idea ?
Thanks again for your precious help.
The discussion ‘Add to cart on .btn-join adds 2 products’ is closed to new replies.