Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

in whcich file oscommerce writes order_totals?


jpool

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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...