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

Show Membership level in profile email - DONE

 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 04-23-2003, 03:29 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default Show Membership level in profile email - DONE

Howdy!

I've done some searching and I'm not quite sure how to integrate the user's membership level in the profile modified email tpl.

Any help would really really be appreciated. I have moderated memberships on, but all the User receives is an email with their contact info when I "approve" their membership.

From the client side this is a little clunky.

*************************************
SOLUTION
*************************************

1. Create new label. Admin, Languages, Pull Down Lang (English in my case), create new label "lbl_your_membership" with text "Your current membership level is: ".

2. Edit template skin1/mail/profile_modified.tpl. Insert User Membership information from database by calling "userinfo.membership".

My adds are in bold.

{$lng.lbl_first_name}: {$userinfo.firstname}
{$lng.lbl_last_name}: {$userinfo.lastname}

{$lng.lbl_your_membership}{$userinfo.membership}

{$lng.lbl_billing_address}:
{$lng.lbl_address}: {$userinfo.b_address}
{$lng.lbl_city}: {$userinfo.b_city}

*******************************
RESULT
*******************************

First Name: Jerry
Last Name: Seinfeld

Your current membership level is: Sponsored by ADP

Billing Address:
Address: 123 Sesame Street
City: Somewhere

Easy. Figured it out myself but I thought I would leave this tiny mod for anyone else interested in doing the same, but unsure of where to start.

Reply With Quote
  #2  
Old 04-25-2003, 01:51 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

A very useful and quick mod for people to do.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 04-25-2003, 11:06 AM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

I like it!
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


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 07:49 AM.

   

 
X-Cart forums © 2001-2020