Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

4th posting! Some one please help me !


btaneja

Recommended Posts

I want to print the order total and order id to checkout_sucess.php

 

I am sure my SQL is messed up, please I would really appreciate some help.

 

For order total, in my checkout_success.php I have:

 

$amount_query = tep_db_query("select value from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . $orders['orders_id'] . "'and title='Total:'");

$amounts = tep_db_fetch_array($amount_query);

$amnt=$amounts["value"];

 

<?php <html> <body> echo "Amount: $amnt"; </body> <html> ?>

 

 

The above returns:

 

Amount:

 

So the $amnt is blank.

I know this query works otherwise.

 

Please help :)

:huh:

Link to comment
Share on other sites

has anyone answered the previous posts? if not, perhaps rewording the question may help. see forum rules on this, as it states, if no one answers a post, then reword it and then keep it in the same thread, not making new threads because you didnt get the answer you liked/didnt get.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...