Lawrence Posted March 21, 2006 Posted March 21, 2006 Hi all How can I change the format of the adress on the invoice? Instead of "Place, ZIP code" it should be "ZIP Place" (without ",") Thank you all in advance! Lawrence
Lawrence Posted March 21, 2006 Author Posted March 21, 2006 ...does anybody has an idea how to solve this?
mtechama Posted March 21, 2006 Posted March 21, 2006 ok if I am not mistaken I think its in (catalog)/admin/includes/languages/english/invoice.php and I could be wrong Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
skylla Posted March 21, 2006 Posted March 21, 2006 Have a look at contribution #2816 which customises OSC for the UK. Any other country, use software like BeyondCompare to see which files this contribution actually changes and adapt to your liking. Good luck
Lawrence Posted March 21, 2006 Author Posted March 21, 2006 Hi all Thanks for your help! I will try this! Lawrence
Lawrence Posted March 21, 2006 Author Posted March 21, 2006 Hi all This didnt solve the problem... I will explain it again: I would like to have a different order at the delivery adress on the invoices: Instead of: "First Name" "Name" "Street" "City", "ZIP Code" it should be "First Name" "Name" "Street" "ZIP Code" "City" How can I do this? Thanks a lot! Lawrence
kgt Posted March 21, 2006 Posted March 21, 2006 Address formats are stored in the address_format table in the database. They are based off of the customer's country. Each country is assigned an address format. If you wish to make a global change (site-wide) to the address format, then you need only adjust the format for your country in the address_format table. If the change you wish to make needs to be applied to invoice only, then you can create a new address format as you desire, then change admin/invoice.php on line 54: <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td> Replace '$order->customer['format_id']' with your new address_format_id. This will always print the invoice as you specify, regardless of the customer's country's format id. Contributions Discount Coupon Codes Donations
Lawrence Posted March 22, 2006 Author Posted March 22, 2006 hi kgt Thank you very much!! It is working now :) Lawrence
Recommended Posts
Archived
This topic is now archived and is closed to further replies.