views:

142

answers:

1

Hi there,

My client has an ubercart based shop which works fine. Due to some internal stuff he needs to manually add a field to each invoice. I wanted to know if or rather how i can add a custom field to orders that gets displayed on all the invoices.

A: 

I have not personally had to make this change, so I'm not speaking from experience, but looking at the documentation I would try the following: (you could cut corners and avoid some work by modifying the existing modules, but this is the cleanest way I can think of)

  1. create a module that stores your field and the the order number.
  2. using from_alter modify the invoice editing screen to give your users a way to edit the field.
  3. use the invoice template to pull in your field, based on the order number. invoice "system" documentation.

It's not a simple change, but using this pattern you'll get the modification you are looking for without having to worry about updates not working.

mirzu
Thanks… that might be a way to get this done. Will try it out next week.
Nils Riedemann
did this answer work for you? totally forgot about following up, and sure could use the bounty :)
mirzu

related questions