![]() |
Registered User has a Pre-defined Membership
Quote:
This is almost what I need, but I want anyone who registers to become a Premium member. In the above solution it shows that the user is assigned the pending membership, but I have now Unchecked the Moderated membership to make registering easier. I need something like $profile_values['membershipid'] = 'Premium'}; Im not sure if that is the correct way to do it, but that is essentially what i'm looking to do. This is for X-Cart 4.4.2 and 4.4.3 (im sure it will be same). Kindly advise. Thanks. |
Re: Registered User has a Pre-defined Membership
I am bumping this thread.
I am still interested in how I can pre-assign a newly registered user to having a premium membership right when they register, so that I don't have to manually do it when they make an account. Kindly advise and thanks. |
Re: Registered User has a Pre-defined Membership
Here are some notes for 4.1 that might point you in the right direction:
include/register.php line 514 add: PHP Code:
|
Re: Registered User has a Pre-defined Membership
Quote:
Thanks so much this worked perfectly! I had to put this code on line 680, this is where the profile fields are defined. Thanks again :) |
Re: Registered User has a Pre-defined Membership
For x-cart version 4.1.9 is there a way to show items based on the membership id in the welcome.tpl
I tried this but it did not work.. HTML Code:
{if $user_account.membershipid eq 9} |
All times are GMT -8. The time now is 02:05 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.