How to set a plan without WooCommerce checkout

Hi,

I have paid plans for businesses advertising on by site, and I would like my customers (the users who are looking at the listings) to be required to create a free account so that they can see the restricted details of the listing. My goal for this is simply to create a user mailing list. However, although I can create a free membership plan, I don’t like the way the HivePress setup takes the user to a payment page where they need to enter their billing address street address details (even if they don’t need to enter payment details), as this information is not needed and therefore should not be collected under GDPR. How can I set the plan up so that the only information the my users need to provide is their name and email address? thanks

Hi,

You can create a free plan (just make sure not to link it to a WooCommerce product), and your users will see only the Select a Plan button. You can also add First Name and Last Name fields to the registration form using this code snippet Make first and last name fields required for users #hivepress #users · GitHub [How to add custom code snippets - HivePress Help Center] and the email field is required by default.

There is also a code snippet that assigns a free plan upon registration:

Hope this helps.

OK thanks, I have removed the link from my membership plan to WooCommerce, so that part is now all good. However, I applied the code snippet you provided to make the first name and last name fields required for users and it hasn’t worked. Can you advise?

Also, it is possible to hide the paid plans from my plans page, as I only want the free plan to appear here: https://ohmfromohm.co.uk/ev-driver-membership/.

The paid plans appear correctly on this page, so I don’t want to change this: https://ohmfromohm.co.uk/submit-listing/package/

Hi @dewi,

  1. In the back-end of WordPress, visit Pages then visit the Edit page of EV Driver Membership.

  2. Look at the page URL. It will be something like this: https://ohmfromohm.co.uk/wp-admin/post.php?post=4743&action=edit

  3. Note the number after post= (in the example above, it’s 4743)

  4. In the back-end of WordPress, visit Appearance > Customize > Additional CSS

  5. Paste in the following:

/* Hide Paid Plans for Free Accounts */
body.page-id-XXX .hp-membership-plans .hp-row .hp-grid__item:nth-child(2),
body.page-id-XXX .hp-membership-plans .hp-row .hp-grid__item:nth-child(3) {
    display: none !important;
}

body.page-id-XXX .hp-membership-plans .hp-row .hp-grid__item:nth-child(1) {
    max-width: 100%;
    flex: 0 0 100%;
}
  1. In the code that you’ve just copy & pasted, REPLACE the XXX part (there’s 3 of them) with the number I told you to note in step 3.

    (e.g. body.page-id-XXX becomes body.page-id-4743)

  2. Click ‘Publish’

The paid plans should now be hidden from view on EV Driver Membership - OhmFromOhm

Example:

I hope this helps!

Cheers,
Chris :victory_hand:

Apologies for the wrong snippet. Please use this one: Add first and last name fields to the user registration form #hivepress #users · GitHub.

Also, please let me know if the provided solution from ChrisB works for you.

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