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)
-   -   Display Membership Level? (https://forum.x-cart.com/showthread.php?t=38655)

1day2004 03-27-2008 09:48 PM

Display Membership Level?
 
Hi,

How would it be possible to display the customers membership level on the registration page?

I've tried the following without success:

Code:

$membership_levels

$userinfo.membershipid

$membershipid

$userinfo.membership

$membership

$user_membership


Yurij 03-28-2008 12:14 AM

Re: Display Membership Level?
 
Quote:

Originally Posted by 1day2004
Hi,

How would it be possible to display the customers membership level on the registration page?

I've tried the following without success:

Code:

$membership_levels

$userinfo.membershipid

$membershipid

$userinfo.membership

$membership

$user_membership



PHP Code:

{* Display membership level *}

<
tr style="display: none;">
<
td>
<
input type="hidden" name="membershipid" value="{$userinfo.membershipid}/>
<
input type="hidden" name="pending_membershipid" value="{$userinfo.pending_membershipid}/>
</
td>
</
tr>

{else}

{if 
$config.General.membership_signup eq "Y" and ($usertype eq "C" or ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A" or $usertype eq "B") && $membership_levels}
{include 
file="admin/main/membership_signup.tpl"}
{/if}

{if 
$usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "") && $membership_levels}
{include 
file="admin/main/membership.tpl"}
{/if}

{* /
Display membership level *} 


SGS 04-09-2008 10:55 AM

Re: Display Membership Level?
 
Hi,

Thanks for the code for displaying the membership level on the registration page.

What I would like to do is display the membership level on the customer "Modify Profile" page. Any idea on where to start and a good place to put it?

Also, I need to create a section above the " "Your Cart" that would display 3 maybe 4 lines of of info. I currently am using the Your cart Section to display the listed info below and I am able to do this using the "userinfo.membership" code. problem is that when a member login, the membership level does not show until certain pages are select such as the Refer A Friend and View cart. I need it to be displayed all the time a customer is l is logged in. I know that the code I am using is not the correct code. Any idea what code can be used?

1. Membership Level; Bronze, Silver or Gold
2. Reward Points: display 0 or number when logged in.
3. Coupon Schedule: Hard link to Calendar.
4. Extra line of info
If you want to have a look and see a better example, www.powerfusion3d.com

thanks

jwpenn 10-24-2011 11:24 AM

Re: Display Membership Level?
 
Is there a way to do the same on the welcome.tpl page ? It seems that when I use this it does not work.. what am I missing?

HTML Code:

{if $user_account.membershipid eq 9}
{$lng.txt_welcomeedge}
{else}
{$lng.txt_welcome}
{/if}


Thanks if you can help.

qualiteam 11-02-2011 11:18 PM

Re: Display Membership Level?
 
Try these instructions -> http://forum.x-cart.com/showpost.php?p=315987&postcount=2


All times are GMT -8. The time now is 02:16 PM.

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