ianric Posted January 31, 2007 Share Posted January 31, 2007 Hi I have installed the contrib and it all works, even the email and the breadcrumb fixes work, but I can't get it to print the improved order number on the checkout_success page. I've tried echoing what I think is the order id and I get Object printed otherwise its just blank. Hope someone can help me. Ian Quote Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2007 Share Posted January 31, 2007 Hi I have installed the contrib and it all works, even the email and the breadcrumb fixes work, but I can't get it to print the improved order number on the checkout_success page. I've tried echoing what I think is the order id and I get Object printed otherwise its just blank. Hope someone can help me. Ian Check al of the edits that have been done before trying to get your own solution. Ther should be a support thread for this. Quote Link to comment Share on other sites More sharing options...
ianric Posted January 31, 2007 Author Share Posted January 31, 2007 Check al of the edits that have been done before trying to get your own solution. Ther should be a support thread for this. Hi Coopco Thanks for the reply. I've searched the forums and I can't see a forum for this contrib. I've rechecked the instruction but its still not displayed. The line I have is <?php echo tep_trans_id($orders['date_purchased'],$orders['orders_id']) . $orders['orders_id'];?> But only ending . $orders['orders_id'] is displayed which is half way there. Also if I change the above code to <?php echo .'fred' . tep_trans_id($orders['date_purchased'],$orders['orders_id']) . $orders['orders_id'];?> I get fred-myordernumber instead of fred-improvedordernumber-myordernumber. Ian Quote Link to comment Share on other sites More sharing options...
ianric Posted February 1, 2007 Author Share Posted February 1, 2007 Hi Coopco Thanks for the reply. I've searched the forums and I can't see a forum for this contrib. I've rechecked the instruction but its still not displayed. The line I have is <?php echo tep_trans_id($orders['date_purchased'],$orders['orders_id']) . $orders['orders_id'];?> But only ending . $orders['orders_id'] is displayed which is half way there. Also if I change the above code to <?php echo .'fred' . tep_trans_id($orders['date_purchased'],$orders['orders_id']) . $orders['orders_id'];?> I get fred-myordernumber instead of fred-improvedordernumber-myordernumber. Ian Hi again I have managed to get it sort of working. In the contrib success checkout update it says put these 2 lines in include(DIR_WS_CLASSES . 'order.php'); $order = new order($order_id); If I hardcode and replace the $order_id with the actual order number it works. So I figure I could get the order_id from account.php of similar but I don't know how. Hope someone can help me Ian Quote Link to comment Share on other sites More sharing options...
ianric Posted February 2, 2007 Author Share Posted February 2, 2007 Hi again I have managed to get it sort of working. In the contrib success checkout update it says put these 2 lines in include(DIR_WS_CLASSES . 'order.php'); $order = new order($order_id); If I hardcode and replace the $order_id with the actual order number it works. So I figure I could get the order_id from account.php of similar but I don't know how. Hope someone can help me Ian Hi, me again Solved. I used sections from the scrambled order number contrib, altered a few SQL queries. Ian :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.