Simple Invoices logo
    • CommentAuthorShenphen
    • CommentTimeJan 22nd 2008 edited
     permalink
    Hi All of you,

    I am trying to add some fields to customers detail page. I know how to add the fields under si_customers in phpMyAdmin. So this is not a problem.

    But I need to add these new fields to the templates, and would like if someone would shortly describe for me where I have to add them. The new fields are not to be used on the invoices. Informations only need to be shown under the editing and adding of the customers as well as one of the fields has to be viewable in the management table. I can not use the so called "custom fields" because I have to be able to call the informations from another script outside Simpleinvoices.

    I suspect it would be very simple. But I have not used Smarty before, som I am not quiet sure how to do it. Which pages do I have to edit and what do I edit?

    Sincerely

    Shenphen
    • CommentAuthorjustin
    • CommentTimeJan 30th 2008 edited
     permalink
    Hey Stenphen,

    you can add the new field into the invoice template by using $customer.field_name

    ie.
    [code]<td class='tbl1-right' align=left colspan="3">{$customer.street_address2}</td>[/code]

    let us know how you go

    Cheers

    Justin