X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add category to invoice... (https://forum.x-cart.com/showthread.php?t=13947)

Darrylb 05-11-2005 04:05 PM

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.

instinctual 05-15-2005 06:33 PM

I believe...
 
I believe it's $product.category - - - - not positive though, give it a whirl.

Darrylb 05-25-2005 06:07 AM

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!

instinctual 05-25-2005 12:58 PM

try this
 
Try $product.categoryid ;o)

Darrylb 05-31-2005 10:12 AM

Sadly, that did not work as well...

instinctual 05-31-2005 10:49 AM

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.

Darrylb 05-31-2005 11:13 AM

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

Darrylb 06-13-2005 04:12 AM

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.