• Dear all,

    If a new customer (without being logged in) wants to buy a course, it clicks on Add To Cart, automatically gets to ../checkout/, then it needs to fill out its details, and can click on Place Order. After waiting for a minute, the error appears “There has been a critical error on this website. Learn more about troubleshooting WordPress.”

    However, I want to require new customers to create an account before buying. I have unticked the boxes:

    LearnPress -> Settings -> Payments -> Guest checkout: Enable guest checkout

    WooCommerce -> Settings -> Accounts & Privacy -> Guest checkout, Allow customers to place orders without an account

    However, new customers are still not forced to create an account. How to solve this?

    Best regards,

    Anne

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there, @annewp! Thanks for contacting us. I’m happy to help you.

    Can you please create run some tests to help us figure out what is going on?

    • Create a test product by adding a simple product with the default WooCommerce interface (Products > Add New > Simple product)
    • Try to buy this product(You can use the Cash On Delivery option)
    • Do you get the same error? If not, are you able to purchase it without an account?

    Please let us know how it goes.

    Have a wonderful day!

    Thread Starter annewp

    (@annewp)

    Dear Carolm,

    I added a product to the shop and this gives the same error as when buying a course when someone is not logged in. If someone first logs in, then there is no error.

    How to force a guest to log in when buying a product or course?

    Thus when going to checkout and when someone is not logged in, can I redirect them to require them to first create an account and only after that proceed to payment?

    Best,

    Anne

    Thank you for reaching back, clarifying things further @annewp .

    How to force a guest to log in when buying a product or course?

    Thus when going to checkout and when someone is not logged in, can I redirect them to require them to first create an account and only after that proceed to payment?

    As I understand, this is part of the LMS (Learning Management System) functionality that LearnPress adds to your site.

    Feel free to reach out to its support channel (linked here), as they would be in a better position to assist you.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    • This reply was modified 4 months, 1 week ago by anastas10s. Reason: typo
    Thread Starter annewp

    (@annewp)

    Dear Anastas,

    Thank you for your quick response. The issue seems in WooCommerce and not specific to LearnPress as buying a product in the shop causes the same problem. In fact, LearnPress has sent me to this WooCommerce forum. Moreover, the issue that guests are not forced to log in when buying a product has been addressed several years ago as well, see https://www.ads-software.com/support/topic/course-add-to-cart-force-unlogin-users-to-login-register/ (also here https://stackoverflow.com/questions/24747095/woocommerce-require-registration-to-buy and here https://aovup.com/woocommerce/force-user-registration/). Is there by now a way to solve this bug directly – WooCommerce -> Settings -> Accounts & Privacy -> disable Guest checkout, Allow customers to place orders without an account does not seem to do the job – or indirectly by redirecting customers who are not logged in somehow?

    Hope you can help me!

    Thanks,

    Anne

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi again @annewp,

    Allow customers to place orders without an account does not seem to do the job

    Thanks for sharing further details on this.

    If I understand you correctly, the settings you mentioned, WooCommerce> Settings> Accounts & Privacy> disable Guest checkout, are indeed not forcing users to create an account or log in before purchasing, is that correct?

    If that’s the case, could you please try switching to a default theme (like Storefront) and check if the same issue persists? Please be sure to only have WooCommerce as the only active plugin.

    Thread Starter annewp

    (@annewp)

    Dear,

    Indeed you are right. When I deactivate the plugin “LearnPress – WooCommerce Payment Methods Integration” everything works up to the payment method. Namely, when buying a product or course, without being logged in, leads me to the page /lp-checkout where it says Please log in to enroll in the course!. This is perfect. However, now the customer cannot pay via iDEAL but only via PayPal. Therefore I need the plugin “LearnPress – WooCommerce Payment Methods Integration”. But then I always get to /checkout rather than lp-checkout. Redirecting to /lp-checkout does not work because that cart remains empty. Could you please help me with this?

    Best wishes,
    Anne

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi again Anne @annewp,

    leads me to the page /lp-checkout where it says Please log in to enroll in the course!. This is perfect.

    Thank you for sharing an update on this issue.

    now the customer cannot pay via iDEAL but only via PayPal. Therefore I need the plugin “LearnPress – WooCommerce Payment Methods Integration”. But then I always get to /checkout rather than lp-checkout.

    This therefore confirms that the issue is not with the WooCommerce core plugin but rather with LearnPress – WooCommerce Payment Methods Integration. I recommend reaching out to their support team and explaining in detail your findings after deactivating their plugin.

    I wish I could help more but hopefully, this gets you going.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.