| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Not allow registered customer to change membership in account details tab | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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?!
__________________
X-Cart V5.3.4.5 (Multivendor) Apache 2.4.18 (Ubuntu) Mysql 5.7.21 PHP 7.1.5 |
|||||||
#2
|
|||||||||
|
|||||||||
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
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
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?
__________________
X-Cart V5.3.4.5 (Multivendor) Apache 2.4.18 (Ubuntu) Mysql 5.7.21 PHP 7.1.5 |
|||||||
#4
|
|||||||
|
|||||||
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:
Now in SKIN > COMMON_FILES > CUSTOMER > MAIN > MEMBERSHIP_SIGNUP.TPL FIND THIS BLOCK OF CODE: - Code:
REPLACE THE ABOVE BLOCK OF CODE WITH: - Code:
NOW in Admin go to TOOLS > MAINTENANCE > CLEAR TEMPLATES/X-CART CACHE > CLEAR You *should* now have what you want? Kind regards ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX X-Cart Pro 4.6.6 Retired after 6 years of first class service X-Cart Pro 4.1.7 Retired after 9 years of first class service Apache: 2.4.25 PHP: 7.4.5 MariaDB: 10.1.44 Arch: x86_64 |
|||||||
|
#5
|
|||||||
|
|||||||
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>
__________________
X-Cart V5.3.4.5 (Multivendor) Apache 2.4.18 (Ubuntu) Mysql 5.7.21 PHP 7.1.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|