Not allow registered customer to change membership in account details tab
I do not want registered customer to change their membership level in their customer details tab (where is this template / .tpl located?)
He/she can only VIEW / Read only and cannot edit / change membership level in their account tab. Can anyone out there helps?! |
Re: Not allow registered customer to change membership in account details tab
You should disable the "Enable sign-up for membership" setting:
https://help.x-cart.com/index.php?title=X-Cart:User_Memberships |
Re: Not allow registered customer to change membership in account details tab
Quote:
I would like them to sign-up membership, but I just do not allow them to edit/change it in their account details tab, they can only "read only". How to apply this using If statement? |
Re: Not allow registered customer to change membership in account details tab
Hi,
In Admin go to TOOLS > PATCH/UPGRADE > APPLY SQL PATCH Paste the code below into the "SQL query(ies):" box and click APPLY: - Code:
INSERT INTO `xcart_languages` (`code`, `name`, `value`, `topic`) VALUES Now in SKIN > COMMON_FILES > CUSTOMER > MAIN > MEMBERSHIP_SIGNUP.TPL FIND THIS BLOCK OF CODE: - Code:
<tr> REPLACE THE ABOVE BLOCK OF CODE WITH: - Code:
{* START Membership Level Change by ITVV *} NOW in Admin go to TOOLS > MAINTENANCE > CLEAR TEMPLATES/X-CART CACHE > CLEAR You *should* now have what you want? Kind regards ITVV |
Re: Not allow registered customer to change membership in account details tab
It works ! Thank you so much !
Btw, before your replied, I also managed to resolved it (but I still prefer your way)...and this is what I did. <tr> <td class="data-name">{$lng.lbl_signup_for_membership}</td> <td></td> <td> {if $login eq ""} <select name="pending_membershipid"> <option value="0">{$lng.lbl_not_member}</option> {foreach from=$membership_levels item=v} <option value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option> {/foreach} </select> {elseif $login ne "" && $usertype.login eq "C"} <select name="pending_membershipid"> <option value="0">{$lng.lbl_not_member}</option> {foreach from=$membership_levels item=v} <option disabled value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option> {/foreach} </select> {/if} </td> </tr> :D/ |
All times are GMT -8. The time now is 03:23 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.