Jump to content
Sign in to follow this  
ianric

Improved order number

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×