Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help- order_totals has no entries


jpool

Recommended Posts

hi there:

 

I really need help, I m posting this here because anyone doing any kind of programming in any of the payment modules have to deal with this

 

when a new order is placed i have no record of it in admin or customer panel, i checked the db and orders and orders_descriptions are properly populated but no record on order_totals , i checked in checkout_process.php

 

CODE

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);

die(" i did this tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array)");

}

 

and nothing

then i tryed

 

 

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 was line 97 0

 

this mean $order_totals is empty

I really need help on this, as i need to go live

 

please contact me as soon as posible with any suggestions, I m going nuts

I really need this so i can switch the shop on!

Thanks in advance

 

 

j.

Link to comment
Share on other sites

its strange, looks like you have no payment modules installed or enabled for some reason. Try in classes\order_total.php function process() should parse the payment modules in the for loop.

Link to comment
Share on other sites

great, after breaking my brain into several diferent pieces, I found out that for some reason when updating my database the configuration for orders_toals was empty, i filled that in and it works!!!

I can t believe it!!

 

 

j

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...