Skip to main content

Add Custom Field to the invoice

More
13 years 7 months ago #91640 by ponygirl
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.

More
13 years 7 months ago #91781 by Xavier
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.

More
13 years 7 months ago #91841 by ponygirl
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.

More
13 years 7 months ago #91921 by Xavier
So in the view, in the foreach for the products, you can add the code:
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.189 seconds
Powered by Kunena Forum