X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Automatic Membership Level (https://forum.x-cart.com/showthread.php?t=66795)

carpeperdiem 06-09-2013 12:22 PM

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.

Duramax 6.6L 08-22-2013 05:37 PM

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

RPMOffroad 09-10-2013 11:44 AM

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!!

Tearlet 03-18-2019 12:22 PM

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?

krazedwear@yahoo.com 12-12-2022 03:46 PM

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?


All times are GMT -8. The time now is 11:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.