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

How to add category to invoice...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-11-2005, 04:05 PM
 
Darrylb Darrylb is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 38
 

Default How to add category to invoice...

Hey all,

Im trying to add the category of the order product to the invoice (skin1\mail\html\order_data.tpl) But i cant quite figure out how to add it. Someone mind helping me?

Thanks.
__________________
Xcart/4.0.12 Gold
Reply With Quote
  #2  
Old 05-15-2005, 06:33 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default I believe...

I believe it's $product.category - - - - not positive though, give it a whirl.
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #3  
Old 05-25-2005, 06:07 AM
 
Darrylb Darrylb is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 38
 

Default

Okay,

I tried: {$product.category}
and when I process an invoice, the spot is just blank. So i do not believe that is the proper variable... Any other guesses?

Thanks!
__________________
Xcart/4.0.12 Gold
Reply With Quote
  #4  
Old 05-25-2005, 12:58 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default try this

Try $product.categoryid ;o)
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #5  
Old 05-31-2005, 10:12 AM
 
Darrylb Darrylb is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 38
 

Default

Sadly, that did not work as well...
__________________
Xcart/4.0.12 Gold
Reply With Quote
  #6  
Old 05-31-2005, 10:49 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default variable not available

That's probabaly because the variable isn't available - you'll need to assign it at the bottom of the PHP page that drives that template. You'll see "smarty-->assign variables" at the bottom of that page, you need to assign the category variable in there.
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #7  
Old 05-31-2005, 11:13 AM
 
Darrylb Darrylb is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 38
 

Default

Im not quite sure as to what you mean...
The 'original' template is \store\skin1\mail\html\order_invoice.tpl
It includes mail/html/order_data.tpl

I do not quite see a spot where I can include that variable...

Thanks
__________________
Xcart/4.0.12 Gold
Reply With Quote
  #8  
Old 06-13-2005, 04:12 AM
 
Darrylb Darrylb is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 38
 

Default

How would I go about assigning a variable there? I see what you mean, using: {assign var="" value=""}

But how can I get this information? Im still a bit puzzled on how this works...

Thanks...
__________________
Xcart/4.0.12 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:16 AM.

   

 
X-Cart forums © 2001-2020