Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

delivery_address_format_id, error in PayPal IPN


cealex

Recommended Posts

Hi,

 

 

Dirty fix, :-"

for delivery_address_format_id error ...

 

in checkout_process.php file and before the line

 

$sql_data_array = array('customers_id' => $customer_id, ...

 

set the following code:

 

$order->delivery['format_id']=1;

 

$order->delivery['format_id']=1;
$sql_data_array = array('customers_id' => $customer_id, ...

 

or you can test if the variable is empty, if so, set the new value ...

the new value must be in the table address_format (address_format_id)

 

 

hasta :P

Link to comment
Share on other sites

  • 2 years later...
Hi,

 

 

Dirty fix, :-"

for delivery_address_format_id error ...

 

in checkout_process.php file and before the line

 

$sql_data_array = array('customers_id' => $customer_id, ...

 

set the following code:

 

$order->delivery['format_id']=1;

 

$order->delivery['format_id']=1;
$sql_data_array = array('customers_id' => $customer_id, ...

 

or you can test if the variable is empty, if so, set the new value ...

the new value must be in the table address_format (address_format_id)

 

 

hasta :P

 

I tried this by adding the following on that spot:

 

if (!tep_not_null($order->delivery['format_id'])){
$order->delivery['format_id'] = 5;
}

 

This however does not help all the time. The delivery address stays empty in orders table. This is not just with Paypal, bu twith other payment options as well. Unfortunately not 100% of the time, which makes error tracking even harder.

 

Any more ideas?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...