Jump to content

Show order reference no, not order Id in guest checkout


Recommended Posts

Hi,

when a user buys a product as a guest it is usefull after the confirmation dialog to show the order reference, not the order id which is only internal...

 

You can see that if you go to buy as guest and then select one of: bank wire, COD, or cheque.

The text displays the id no which is something like #00000013 and not the reference no which is like YUIWGEHJKJ/

 

I found that this info is in order-confirmation.tpl in line 42

{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}

but how can I show the reference number?

I tried with:

{$reference_order}, {$reference} but with no luck..

Share this post


Link to post
Share on other sites

you are doing it properly based on the code in bankwire.php and OrderConfirmationController.php

you would replace {$id_order_formatted} with either {$reference_order} or {$reference}

 

have you enabled tpl compilation, so the theme changes are picked up by the system? to confirm your changes are being picked up, put some random text in the order-confirmation.tpl and then confirm you see it.

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
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More