Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Automatic Membership Level

   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
Thread Tools Search this Thread
Old 06-09-2013, 12:22 PM
carpeperdiem carpeperdiem is offline

Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399

Default Re: Automatic Membership Level

PS - if you use AlteredCart Checkout_One, add the <input type> lines in the file,


<input type="password" autocomplete="off" name="passwd2" id="passwd2" size="32" maxlength="64" value="{if $login}filler{else}{$userinfo.passwd2}{/if}" onchange="javascript:checkoutDoPasswordsMatch();" />

<input type="hidden" name="membershipid" value="1" /> <input type="hidden" name="pending_membershipid" value="1" />

And then a new customer registering at checkout will automatically be assigned to your membershipid = 1 at checkout

IF you use other checkout templates, you will probably need to edit those.
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Old 08-22-2013, 05:37 PM
Duramax 6.6L Duramax 6.6L is offline

Join Date: Dec 2006
Posts: 865

Default Re: Automatic Membership Level

To make this work in 4.6.0 and you are using the One Page Checkout, you need to make the same modifications to account_info.tpl located in

Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
Reply With Quote
Old 09-10-2013, 11:44 AM
  RPMOffroad's Avatar 
RPMOffroad RPMOffroad is offline

Join Date: Sep 2013
Posts: 18

Default Re: Automatic Membership Level

Carpeperdiem's Post worked wonders for me on this the only thing I would add is to make sure that you DISABLE signup for membership in general settings and an easy way to find out your "MemberId" is with firebug, right click on the membership level you WANT as default and inspect element. the Memberid will be the number beside the desired membership level. Kudos carpeperdiem days of continued searching ended by you!!
X-Cart version 4.6.6
X-Cart Gold
Product Configurator
Feature Comparison

Website Manager
Reply With Quote
Old 03-18-2019, 12:22 PM
Tearlet Tearlet is offline

Advanced Member
Join Date: May 2012
Posts: 35

Default Re: Automatic Membership Level

This customer has upgraded from X-Cart 4.4 to X-Cart 4.7 and it appears the membership will no longer automatically register the new members.

I have made sure the include/register.php has

// Update/Insert user info

$common_profile_fields = array(

$profile_values = array();

foreach ($common_profile_fields as $field) {

$profile_values[$field] = isset(${$field}) ? ${$field} : '';


$profile_values['membershipid'] = ${'pending_membershipid'};

Anyone know of any other changes with X-Cart 4.7 that would need to be included to make this happen again?
customers use xcart 4.4 - 4.7, I will state which one with each question.
Reply With Quote
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 11:47 PM.


X-Cart forums © 2001-2020