jpool Posted September 8, 2005 Share Posted September 8, 2005 hi : basically, using any payment processing option, i can process the order, everything is fine, orders, order_products it written properly, but order_totals is not i m checking a lot of files to see if i accidentally erased something but i can t figure out what, please help, this is the only thing that is stoping me going live Cheers j Quote Link to comment Share on other sites More sharing options...
jpool Posted September 8, 2005 Author Share Posted September 8, 2005 I believe this is where: for ($i = 0, $n = sizeof($order_totals); $i < $n; $i++) { $sql_data_array = array('orders_id' => $insert_id, 'title' => $order_totals[$i]['title'], 'text' => $order_totals[$i]['text'], 'value' => $order_totals[$i]['value'], 'class' => $order_totals[$i]['code'], 'sort_order' => $order_totals[$i]['sort_order']); tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array) I found this code in my actual checkout_process.php and it is exactly the same in the original file from a clean oscommerce instal, so what could be wrong? Thanks in advance j Quote Link to comment Share on other sites More sharing options...
jpool Posted September 8, 2005 Author Share Posted September 8, 2005 Ok, i just made a test and if i modify my code like this CODE die("line 97 ".sizeof($order_totals)); for ($i = 0, $n = sizeof($order_totals); $i < $n; $i++) { $sql_data_array = array('orders_id' => $insert_id, 'title' => $order_totals[$i]['title'], 'text' => $order_totals[$i]['text'], 'value' => $order_totals[$i]['value'], 'class' => $order_totals[$i]['code'], 'sort_order' => $order_totals[$i]['sort_order']); tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array); the result is: line 97 0 this means that $order_totals is empty, how can i solve this? please :) j Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.