Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order Total


dburchm1

Recommended Posts

Hi

 

I have a baffling problem. My shopping cart seems to be working perfectly except that it is not writing the order total to the order_total table at the end of checkout. It writes the Order to the order table and sends out the email with the order on confirmation and seems to save all the other info, but it doesn't seem to be doing the step to write the order total in checkout process:

 

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

  }

 

Without the order_total, orders don't show up in the admin or the customer order history.

 

I can't think of anything I did to make it not work. Anyone have any ideas?

 

Best Regards

Dan Burch

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...