Jump to content

Order Confirmation Page Variables


Recommended Posts

Hello

 

I'm using PS 1.5.x.x and I'm having problem getting the order reference to show on confirmation page. I have a custom theme where I have altered the confirmation.tpl file heavily and I can't get {$order_name} to show now when I put it back.

 

I've looked at the default order-confirmation.tpl file and I'm not sure what is missing for that variable to show? Do I need to include any other .tpl fil to be able to access order values?

Link to comment
Share on other sites

I find this line in the default order-confirmation.tpl file:

 

<p>{l s='Your order ID is:'}<span class="bold">Order Id: {$order_name}</span> . {l s='Your order ID has been sent via email.'}</p>

 

or is it:

 

{$reference_order} I'm looking for?

Link to comment
Share on other sites

Well you don't specify the exact version of Prestshop, so things could have changed.

 

This is from PS 1.5.6.3, however it is the same all the way back to PS v1.5.1, so I suspect you have customized even the default theme.

{if $is_guest}
    <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p>
    <a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")|escape:'html'}" title="{l s='Follow my order'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Follow my order'}" class="icon" /></a>
    <a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")|escape:'html'}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>
{else}
    <a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='Back to orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Back to orders'}" class="icon" /></a>
    <a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>
{/if}

Again, if you can simply say WHAT you are expecting to appear, I can probably help you

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hello,
  I saw some of your posts and I wanted to ask if you could help me out,
I was testing an order and final phase after clicking "CONFIRM MY ORDER", I get a white page with a message "File Not Found" ...
I copied the link:
http://www.oakom-shop.com/it/index.php?controller=order-confirmation?id_cart=1172&id_module=1&id_order=129&key=8159217a9375f49d425b4bb833a02c39

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