Add Custom Field to the invoice

  • Posts: 46
  • Thank you received: 1
11 years 8 months ago #91640

Hi

Hopefully someone can help me with how to add a custom field to the invoice?

Also how do i increase the width of invoice date?

At present it shows like this

Date:
24 February
2013

But i need it like this

Date: 24 February 2013

Many thanks

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #91781

Hi,

To add/edit the content of the invoices, you can edit the view "order / invoice" to change the width of the date and display a custom field.
Which kind of custom field do you want to display ?

Please Log in or Create an account to join the conversation.

  • Posts: 46
  • Thank you received: 1
11 years 8 months ago #91841

Hi Xavier

Thanks for your reply

The custom field i wish to sdd to the invoice is called Model Number and it uses the product table and is of a field type of text, column name is model_number

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #91921

So in the view, in the foreach for the products, you can add the code:

if(isset($product->model_number))						
	echo $product->model_number;

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum