View Single Post
  #1  
Old 05-07-2011, 10:34 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Registered User has a Pre-defined Membership

Quote:
Originally Posted by qualiteam
In 4.4.x you should alter "include/register.php" script, find and replace this code:
PHP Code:
foreach ($common_profile_fields as $field) {
 
$profile_values[$field] = isset(${$field}) ? ${$field} : '';
 
}
 
// Store new password 
with this:
PHP Code:
foreach ($common_profile_fields as $field) {
 
$profile_values[$field] = isset(${$field}) ? ${$field} : '';
 
}
 
$profile_values['membershipid'] = ${'pending_membershipid'};
 
// Store new password 

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.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote