Orders module: Get custom field value from Products module?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Orders module: Get custom field value from Products module?

Post by 10010110 »

Is there any way to get product custom field values in the order confirmation template? (Orders module)
In Cart2 there is the $cartitem array that holds the custom field value(s) from the Products module but I don’t see anything in Orders?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Orders module: Get custom field value from Products modu

Post by JohnnyB »

There should be a {foreach} loop in the templates that you can use to access that data. It might be $item->fields or something similar (I haven't looked).
Then you can do a {$item|print_r} statement in your template to see all available fields that can be put into the template.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Modules/Add-Ons”