| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to add category to invoice... | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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. |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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. |
|||||||
#5
|
|||||||
|
|||||||
![]() Sadly, that did not work as well...
__________________
Xcart/4.0.12 Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() 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. |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
#8
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|