Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$order_totals is empty


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

 

  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

 

 

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,

 

Thanks in advance

 

 

j.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...