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

Automatic Membership Level

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

X-Guru
  
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,

/skin/common_files/modules/Checkout_One/checkout_one_register_account.tpl

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

INSERT:
Code:
<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
  #12  
Old 08-22-2013, 05:37 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
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

skin/common_files/modules/ONE_PAGE_CHECKOUT/profile/account_info.tpl
__________________
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
MAP Price MOD
Reply With Quote
  #13  
Old 09-10-2013, 11:44 AM
  RPMOffroad's Avatar 
RPMOffroad RPMOffroad is offline
 

Member
  
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
www.RPMOFFROAD.com
Reply With Quote
  #14  
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

Quote:
// Update/Insert user info

$common_profile_fields = array(
'title',
'firstname',
'lastname',
'company',
'email',
'url',
'pending_membershipid',
'ssn',
'parent',
);

$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
  #15  
Old 12-12-2022, 03:46 PM
 
krazedwear@yahoo.com krazedwear@yahoo.com is offline
 

Advanced Member
  
Join Date: Aug 2013
Posts: 33
 

Default Re: Automatic Membership Level

Quote:
Originally Posted by Tearlet
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



Anyone know of any other changes with X-Cart 4.7 that would need to be included to make this happen again?


Did anyone figure this out?
__________________
KraZeD
Reply With Quote
Reply
   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 05:01 PM.

   

 
X-Cart forums © 2001-2020