Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Losing some sessions between checkout_payment and checkcout_confirmation


Guest

Recommended Posts

Hi all

 

BTS templated RC2.2 store with a few add ons but nothing too serious.

 

Clients server was recently upgraded to PHP 5.1.2 (maybe a red herring)

 

Currently the sessions for $billto and $payment disappear between checkout_payment and checkout_confirmation. Other sessions (e.g. sendto) stay intact.

 

If I go through checkout_payment_address.php and add another address (or even just reselect the default customer address) then the billto session will then work (however payment still does not work)

 

Site works fine on another server.

 

I am bamboozled - any ideas?

 

Graeme

Link to comment
Share on other sites

Futher to above - checkout_payment_address.php works as it sends billto as an array rather than a single value. classes/order.php will process this correctly whereas it will fail at line 202 as (int)$billto has no value when called - so that's another red herring. Payment session value also seems to go through so it is only $billto that has a problem - I have compared it with $sendto and everything looks similar.

 

Graeme

Link to comment
Share on other sites

Futher to above - checkout_payment_address.php works as it sends billto as an array rather than a single value. classes/order.php will process this correctly whereas it will fail at line 202 as (int)$billto has no value when called - so that's another red herring. Payment session value also seems to go through so it is only $billto that has a problem - I have compared it with $sendto and everything looks similar.

 

Graeme

OK - got around the missing billto by adding

	        if ( ($billto == false) ) {
       $billto = $customer_default_address_id;}

to includes/classes/orders.php at around line 202. Still none the wiser why this single session value is failing

 

GT

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...