Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
Can you tell me how I can edit the template so that I can put my bank details in on the bottom line, rather than "foobank" etc. Also, is it possible to edit the order of fields in the address so that the postcode comes after the city, as is usual in the UK?
Thanks,
Comments
Comment #1
edrob06 CreditAttribution: edrob06 commentedI have spent a lot of time customizing the template and module itself.
If you go to the module folder then go templates folder then the template files are there.
If you are worried about messing the template up you can copy the two file there and rename them.
As for your specific example I changed the order as well as added a state field as well as I am in the US and that is part of our postal code.
I also added some code at the top that formats the name/company so that if it is a Company name is present it is large and bold, if there is a fullname it is smaller and directly below company. If there is no company name it sets the full name to be large and bold as the company name was. I think this looks a lot more professional.
So the sections of code which look like this
<span class="street">'. $invoice->customer['street'] .'</span>
are the ones you want to move, be careful to keep the tags together correctly or you will get some errors or bad formatting. The spans allows for formatting of specific fields.Also be sure to remove this
<span class="state">'. $invoice->customer['state'] .'. </span>
unless you add a state field to the module.Comment #2
pietervogelaar CreditAttribution: pietervogelaar commented