![]() |
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. |
I believe...
I believe it's $product.category - - - - not positive though, give it a whirl.
|
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! |
try this
Try $product.categoryid ;o)
|
Sadly, that did not work as well...
|
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.
|
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 |
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... |
All times are GMT -8. The time now is 11:12 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.