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

Membership type on invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-06-2004, 09:04 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default Membership type on invoice

Not sure if I'm being thick here but I'm trying to get the memebership type e.g. wholesale, premium etc to display on the invoice. I tried adding:

Code:
{$customer.membership}

to order_data.tpl but that didn't work -just a blank...any ideas what I'm missing?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 09-17-2004, 03:55 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

I've managed to get the desired output on screen only by following Shan's code:

http://forum.x-cart.com/viewtopic.php?t=9561

Unfortunately I can't get it to display on the email orders. I'm figuring I need to use a smarty assign bit of code in the process order function in func.php along the lines of

Code:
$mail_smarty->assign("user_membership",$user_account["membership"]);

of which I've tried a couple of variations but I still can't get it to output {$user_membership} anywhere on the email, just leaves a blank -so I can assume the value hasn't been assigned. Any ideas where I'm going wrong?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #3  
Old 09-17-2004, 05:26 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try

$order.membership
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 09-17-2004, 05:39 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

THANKS!!

Honestly, I could cry, I've spent a good couple of hours experimenting with this one...

Thanks again,

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #5  
Old 09-17-2004, 05:44 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

the only good thing with that is that it feels better when it works.

If I had a pound for every hour wasted on simple things I would have enough to pay someone else to waste their time instead
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 04:31 AM.

   

 
X-Cart forums © 2001-2020