bobsi18 Posted May 5, 2006 Posted May 5, 2006 Hi there.. I'm playing around with displaying different text on the checkout_confirmation page, based on what the customer has selected as the payment method. For example, if the customer pays via Bank Transfer, I want the page to display our banking details, etc. I have all the informatin disaplying as I want on the page, my last hurdle is to ONLY display the selected code if the payment methd is right. I've been trying to play with: $orders_query = tep_db_query("select orders_id, customers_name, payment_method from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); if ($orders['payment_method'] = 'Bank Transfer Payment') echo 'ALL MY PRETTY TEXT'; I can't get it working... Does anyone have any suggestions? I've looked through my database, and as far as I can see, the only table that mentions the payment method is ORDERS, and the field name is PAYMENT_METHOD. I've also tried looking at account_history_info.php, because I know that records what payment method was used, but I just can't see the line that calls it. Thanks for any help :) ~Barbara~
Recommended Posts
Archived
This topic is now archived and is closed to further replies.