Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pass Variable To Checkout_process.php


magnastik

Recommended Posts

Posted

No but envio is a variable.

 

What's your point?

Posted
No but envio is a variable.

 

What's your point?

my point is you treat tep_session_register as an array in your code.

Posted

$envio = 1.23;
tep_session_register['envio'];

 

Registers a variable to $_SESSION

 

 

$valor_shipping = '';
 if (isset($_SESSION['envio'])) {
 $valor_shipping = $_SESSION['envio'];
 tep_session_unregister('envio');
 }

 

Moves the value to $valor_shipping and unsets the session variable, where do I treat tep_session_register as a array? it's a function.

Posted

because you have square brackets around the tep_session_register.

Posted

Opps :-"

 

$envio = 1.23;

tep_session_register('envio');

 

That'll teach me to code after a skinfull of beer.

 

Thx Enigma (could have told the guy asking the question earlier though)

Posted
Hi...

it worked.... :rolleyes:

 

thank you so much,

magnastik

Ooopsss...

another problemmm...

 

because i'm not using none of the shipping modules i've have hand code a way to print the shipping value in screen, like this:

 

in ot_total.php (includes/modules/order_total)

function process() {
  global $order, $currencies, $envio;
  $order->info['total'] = $order->info['total'] + $envio;

  $this->output[] = array('title' => 'Shipping: <br><br>'.$this->title . ':',
						  'text' => $envio.'€<br><br><b>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</b>',
						  'value' => $envio.'<br>'.$order->info['total']);
}

 

but now i've this issue, in the admin page when i go to client orders it prints me Shipping withou value, because the total values are inserted in ORDERS_TOTALS table and i was inserting in ORDERS table.

 

The inserted records in ORDERS_TOTAL table stay like this:

 

in the TITLE field: Shipping: <br><br>Total:

in the TEXT field: €<br><br><b>756.00€</b>

 

so as we can see is not inserting the SHIIPING value... how can i do this? insert the shiping value? i believe i will have to change my code in OT_TOTAL.php and perhaps hand code a custom OT_SHIPPING.php file...

 

Some help would be appreciated...

 

Bye,

magnastik

Posted

Hi!

 

To be specific.. i'm using a custom FEDEX table to ship from portugal.

i didn't find any FEDEX international priority shipping module that works sending from Portugal.

 

So that's why i'm doing this way...

 

I need help to solve this problema... is the last one :D

 

Thanks,

magnastik

Archived

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

×
×
  • Create New...