latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Nothing to upgrade. You already have a member

Home Forums Community Forum Nothing to upgrade. You already have a member

This topic contains 3 replies, has 2 voices. Last updated by  Raam Dev 4 years, 7 months ago.

Topic Author Topic
Posted: Tuesday Jun 5th, 2012 at 6:24 am #15456
Rakesh Patel
Username: spaceo

Hello ,

I have common Membership List page like Free trial for 30 day, Level2,Level3… with different capability ,level wise form page link at the bottom of each list under particular head. I am using s2Member® Pro / PayPal® Pro Forms for creating all level form.

Now my question is how can i achieve below functionality :

If a user has already purchase one membership and for next time he choose same instead of another higher level then how can i stop him to purchase for the same. And gives him error message like “Nothing to upgrade. You already have a membership that covers this.” Please explain me details for the same.

Thanks

  • This topic was modified 4 years, 7 months ago by  Rakesh Patel.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Jun 5th, 2012 at 9:14 am #15500
Raam Dev
Username: Raam
Staff Member

Hi Rakesh,

You can wrap the Pro-Form in a conditional that checks if the user already has that level membership. You’ll use the s2Member Shortcode Conditionals for this (Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals):

[s2If current_user_can(access_s2member_level1)]
    Nothing to upgrade. You already have a membership that covers this.
[/s2If]

[s2If !current_user_can(access_s2member_level1)]
    [s2Member-Pro-PayPal-Form level="1" ccaps="" ........... /]
[/s2If]
Posted: Wednesday Jun 6th, 2012 at 12:47 am #15634
Rakesh Patel
Username: spaceo

Hello Raam,

Thanks for your reply its helpful for me to solve my problem.

Posted: Wednesday Jun 6th, 2012 at 3:57 am #15660
Raam Dev
Username: Raam
Staff Member

No problem, Rakesh! Glad to help. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.