Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Trouble setting up direct checkout
Tagged: cart, direct checkout, payment, WooCommerce
- This topic has 8 replies, 2 voices, and was last updated 6 years, 6 months ago by Diana.
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
June 5, 2018 at 11:37 pm #164100senorchavezParticipantI can't get direct checkout to work. I would like to go straight to the payment page as soon as the user clicks the "take this course" button. I have set direct checkout to "skip product page & cart" in the WPLMS > Miscellaneous settings, re-saved my permalinks, and followed the guide here: https://wplms.io/support/knowledge-base/direct-checkout-not-working/ Additionally, I reverted Woocommerce to 3.3.5 (was previously updated to 3.4.2) to get rid of the template errors, and removed all customization from the child theme. I have also verified that choose only "skip cart" and only "skip product page" have no effect. However, it still goes to the product page with an "add to cart" button when the user clicks "take this course." I will follow up with a private post containing login details.June 5, 2018 at 11:39 pm #164101senorchavezParticipantThis reply has been marked as private.June 6, 2018 at 12:57 pm #164217DianaParticipantThis reply has been marked as private.June 7, 2018 at 4:18 am #164299senorchavezParticipantHi Diana, thanks for testing it. Based on your video, I found that it does indeed work for a user logged int to an existing account. However, I would like it to work for a new user who does not have an account, who will purchase the course and then create an account during checkout. When I try to buy a course under those conditions, clicking on the "take course" button takes me to a screen that says "your cart is empty" instead of to checkout.June 7, 2018 at 10:03 am #164363DianaParticipant@senorchavez, Update your theme to 3.5.1 and then check again. Then Let me knowJune 7, 2018 at 11:29 am #164392senorchavezParticipantHi Diana, I updated the theme, but the issue persists.June 8, 2018 at 11:43 am #164632DianaParticipant@senorchavez, Check whether you have enabled caching for non-logged in user. If yes, then please disable that.June 8, 2018 at 11:28 pm #164687senorchavezParticipant@Diana I have made some progress. Unfortunately I tried multiple things at once, so I can't say exactly what did the trick, but... I did some digging and determined that our host, WPEngine, has caching enabled by default on their end. So even if I was (very intentionally) not using any caching plugins, there could still be caching taking place. I contacted support and had them disabled caching of pages under the /courses directory. They said it would take some time, so while they were doing that, I continued debugging. I switched from the blank child theme to the original WPLMS theme, and re-enabled the plugins. About that time they said the caching had been disabled... And then it began working! So it was likely one of those two things. If the direct checkout mode makes changes to the "take this course" button, then it was likely the caching at fault and disabling it on the courses page fixed the issue. If changing the themes fixed the problem... that was probably still a caching issue of another sort. Since then I've deleted the blank child theme and reinstalled it. I was able to switch to it and the direct checkout still works. I think the issue is probably now solved, however I'm testing it a bit more for robustness.June 9, 2018 at 3:39 am #164698DianaParticipant@senorchavez, The issue is related to caching. It takes place when the caching is enabled for non-logged in user. Whenever a non-registered user try to add something in the cart it loads a blank cart page saying the cart is empty. I debugged the redirections of the pages as well. Everything was working perfectly. Then, I realised the page is cached. That's why it is showing the same page. Yes, you can test it and please confirm me after testing
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘Trouble setting up direct checkout’ is closed to new replies.