Buy Plan button should require login before checkout

I’m using HivePress with the Memberships extension. When a non-logged-in user clicks “Buy Plan” on a membership plan, they go directly to WooCommerce checkout without being asked to log in first.

I want the Buy Plan button to show the HivePress login popup for non-logged-in users, instead of sending them straight to checkout.

Is there a snippet or setting to achieve this?

Thanks for your message — our team will reply shortly.

In the meantime, you can also get instant help from our AI Assistant, familiar with all the docs and solutions we’ve shared over the years.

Hi,

Welcome to the community. :herb:

This is the default behavior and is designed this way to keep the flow smooth. For example, if the user is not registered yet, the checkout process also handles registration automatically.

There should also be a prompt above the checkout form like “Have an account? Log in”.

It is possible to redirect users to the login page first instead, but this would require customizations in the code. We can provide general guidance on how to achieve this, or check whether there is a simple snippet that could handle it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.