skip to Main Content

I’d like to allow anyone to pay for their initial subscription order without having to log in.

I’ve tried adding this snipet to my website but it doesn’t work:

https://www.businessbloomer.com/woocommerce-allow-to-pay-for-order-without-login/

It works for orders but not for parent orders of a subscription.

2

Answers


  1. Chosen as BEST ANSWER

    After exploring WooCommerce Subscriptions Core code I'm convinced that this it not possible. The plugin enforces that the user needs to be logged in to pay for the parent order of a subscription.

    See wcs-cart-initial-payment


  2. The solution mentioned in the article you linked to only works for regular WooCommerce orders and not for subscriptions, which are a separate product type in WooCommerce and have different payment requirements.

    You may find this guide on guest checkout for WooCommerce subscriptions helpful:

    https://simongondeck.com/woocommerce-subscriptions-guest-checkout/

    Or, if you are more of a visual learner, follow along with this video tutorial that outlines everything described in the article:

    https://www.youtube.com/watch?v=twqdtHu5TqQ&ab_channel=SimonGondeck

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search