Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Improved order number


ianric

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

Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
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

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.
Note: Your post will require moderator approval before it will be visible.

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