♥FWR Media Posted May 30, 2007 Posted May 30, 2007 No but envio is a variable. What's your point? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted May 30, 2007 Posted May 30, 2007 No but envio is a variable. What's your point? my point is you treat tep_session_register as an array in your code.
♥FWR Media Posted May 30, 2007 Posted May 30, 2007 $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. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted May 30, 2007 Posted May 30, 2007 because you have square brackets around the tep_session_register.
♥FWR Media Posted May 30, 2007 Posted May 30, 2007 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) Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
magnastik Posted May 31, 2007 Author Posted May 31, 2007 Hi... it worked.... :rolleyes: thank you so much, magnastik
magnastik Posted May 31, 2007 Author Posted May 31, 2007 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
magnastik Posted May 31, 2007 Author Posted May 31, 2007 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.