Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having problems saving a variable, help!


monito

Recommended Posts

How do I save a variable from checkout_shipping.php to the order?

 

I already added a variable to orders

 

I save the UPS quote in checkout_shipping.php:

if ($quotes[$i]['id'] == 'upsxml') 
  $ups_cost = $quotes[$i]['methods'][$j]['cost'];

Then I save it in checkout_preocess.php

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

					   'ups_cost' => $ups_cost, 
					  'currency_value' => $order->info['currency_value']);

 

But the value is always 0.00

 

Do I need a global $ups_cost? I tried it, but the result is the same.

 

Thanks,

 

Pat

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...