| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Calling an extra field on the invoice | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
Quote:
I have tried that but it dosn't output anything for some reason.
__________________
X-Cart Gold 4.1.12 |
|||||||
#12
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
I was able to get this working on 4.1.9
File location: skin1 > mail > html > order_data.tpl You can display your extra fields using this code: {$product.extra_fields.0.value} where 0 is the id of the extra field. The first extra field for your store is 0, if you haven't deleted anything. Then count from there if necessary to display the correct one.
__________________
x-cart gold v.4.1.9 |
|||||||
#13
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
Quote:
Kube, Balinor, Diode, It's a great lead for me. Thanks. When you say {$products.0.extra_fields.0.value} Sends out okay in email. Would this equate to putting {$products.0.extra_fields.0.value} in the product loop in (4.1.9) mail/order_data.tpl ? To test, I currently have {section name=prod_num loop=$products} {$products.0.extra_fields.0.value} {$products.0.extra_fields.1.value} {$products.1.extra_fields.0.value} {$product.extra_fields.0.value} {$product.extra_fields.1.value} {$product.extra_fields.2.value} ... etc In mail/order_data.tpl. Though the extra fields are set and appear in other pages, this section in the order notification email is blank. Can you share how you got {$products.0.extra_fields.0.value} OR {$product.extra_fields.0.value} to show up in an email? Many thanks, -Michael
__________________
Brainwaves Educational Toys Live X-Cart 4.1.9 Linux 2.6.9, Apache 1.3.41, PHP 4.4.8 Upgraded from X-Cart 4.0.13 |
|||||||
#14
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
I have been following this and trying to get an extra field I have in my database to show up on the admin side under the order status page (where the customers order is shown. I have added the
Quote:
Basically I added a typicalprice extra field to program the typical price we pay for a product, and would like it to show when the customer places the order (on admin side only) so we know what our typical price is. Thanks, |
|||||||
#15
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
I tried this as well for v4.1.9, but it doesn't show the designated extra field. I've added {$product.extra_fields.0.value} to the mail/html/order_invoice.tpl. How did you get the extra field to work?
Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#16
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice (Bump)
Balinor, Diode,
Any chance you can give us hints as to how you made it work? -Michael
__________________
Brainwaves Educational Toys Live X-Cart 4.1.9 Linux 2.6.9, Apache 1.3.41, PHP 4.4.8 Upgraded from X-Cart 4.0.13 |
|||||||
#17
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice (Bump)
Have you had any luck with getting the loop through to work for order_data.tpl?
Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#18
|
|||||||||
|
|||||||||
Re: Calling an extra field on the invoice
I would like to have this working as well but slightly different. I need be able to add a unique Invoicenumber manually to every order that have status "shipped".
So for initally placed orders I don't want to show the Invoicenumber. Right now I have created a label "lbl_invoicenumber" to order_invoice.tpl and it shows up but don't know how to proceed further... Anyone knows how to manage that?
__________________
____________________________ X-Cart Gold 4.1.10 EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here... |
|||||||||
#19
|
|||||||
|
|||||||
Re: Calling an extra field on the invoice
Im trying to get this to work in 4.2 /skin1/mail/html/order_data.tpl with no luck. I have used {$product.extra_fields.6.value}. Did anyone get an answer on this?
Many Thanks
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#20
|
|||||||||
|
|||||||||
Re: Calling an extra field on the invoice
anyone have an idea for 4.2? Please!!!
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|