History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: OSC-50
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Harald Ponce de Leon
Reporter: Harald Ponce de Leon
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
osCommerce Core

Email confirmation of order not using address format defined in countries table.

Created: 02/Nov/06 02:11 AM   Updated: 08/Mar/07 11:21 PM
Return to search
Issue 21 of 46 issue(s)
<< Previous | OSC-50 | Next >>
Component/s: Core Framework
Affects Version/s: 3.0 Alpha 3
Fix Version/s: 3.0 Alpha 4


 Description  « Hide
The emailed confirmation is not following the address format defined in the countries table due to an omission of a line in the sendEmail function in includes/classes/order.php:

'format' => $Qorder->value('delivery_address_format')

in:

$address = array('name' => $Qorder->value('billing_name'),
              'company' => $Qorder->value('billing_company'),
              'street_address' => $Qorder->value('billing_street_address'),
              'suburb' => $Qorder->value('billing_suburb'),
              'city' => $Qorder->value('billing_city'),
              'state' => $Qorder->value('billing_state'),
              'zone_code' => $Qorder->value('billing_state_code'),
              'country_title' => $Qorder->value('billing_country'),
              'country_iso2' => $Qorder->value('billing_country_iso2'),
              'country_iso3' => $Qorder->value('billing_country_iso3'),
              'postcode' => $Qorder->value('billing_postcode'),
              'format' => $Qorder->value('delivery_address_format'));

The last line in the array above needs to be added in both the delivery address and the billing address arrays.

Credit goes to to Claudio (pknet) for tracking down the cause of the error.

* Ticket imported from Trac. Original reporter: AlanR

 All   Comments   Change History      Sort Order:
Change by Frank Heinen [26/Dec/06 12:20 AM]
Field Original Value New Value
Assignee Harald Ponce de Leon [ hpdl ] Frank Heinen [ f.r.@.n.k ]

Change by Frank Heinen [26/Dec/06 12:20 AM]
Status Open [ 1 ] In Progress [ 3 ]

Change by Harald Ponce de Leon [08/Mar/07 11:21 PM]
Status In Progress [ 3 ] Closed [ 6 ]
Fix Version/s 3.0 Alpha 4 [ 10002 ]
Resolution Fixed [ 1 ]
Assignee Frank Heinen [ f.r.@.n.k ] Harald Ponce de Leon [ hpdl ]