Jump to content
ayoko555

How to edit order confirmation page

Recommended Posts

I would like to add links (resellerratings.com) on the final order confirmation page where customer can click and add reviews there.

 

Which file should I edit this?

Share this post


Link to post
Share on other sites

order-confirmation.tpl in your theme folder.

Don't forget to clear the smarty cache...

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for your reply. Where in the file should I add the lines (links)?

 



<script type="text/javascript">
<!--
var baseDir = '{$base_dir_ssl}';
-->
</script>

{capture name=path}{l s='Order confirmation'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
{assign var='current_step' value='payment'}
{include file="$tpl_dir./order-steps.tpl"}
<div class="table_block">
<h2>{l s='Order confirmation'}</h2>

{include file="$tpl_dir./errors.tpl"}

{$HOOK_ORDER_CONFIRMATION}
{$HOOK_PAYMENT_RETURN}
<br />
{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 to your e-mail.'}</p>
<a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" 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.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>
{else}
<a href="{$link->getPageLink('history.php', true)}" 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.php', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>
{/if}
</div>

Share this post


Link to post
Share on other sites

Wherever you want the to show up.....

Try, and see where they appear on the page ;)

 

 

{$HOOK_ORDER_CONFIRMATION}

and

{$HOOK_PAYMENT_RETURN}

 

Will have the confirmation message from the actual payment module

Share this post


Link to post
Share on other sites

Hello, did you ever get this to work? I can't get the window to pop up...this is my code:

 

<script type="text/javascript">

//<![CDATA[

var baseDir = '{$base_dir_ssl}';

//]]>

</script>

{capture name=path}{l s='Order confirmation'}{/capture}

{include file="$tpl_dir./breadcrumb.tpl"}

<h1>{l s='Order confirmation'}</h1>

{assign var='current_step' value='payment'}

{include file="$tpl_dir./order-steps.tpl"}

{include file="$tpl_dir./errors.tpl"}

{$HOOK_ORDER_CONFIRMATION}

{$HOOK_PAYMENT_RETURN}

{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 to your e-mail.'}</p>

 

<ul class="footer_links">

<li><a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}"><img src="{$img_dir}icon/order.png" alt="{l s='Follow my order'}" class="icon" /></a><a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}">{l s='Follow my order'}</a></li>

</ul>

{else}

<ul class="footer_links">

<li><a href="{$link->getPageLink('history.php', true)}" title="{l s='Back to orders'}"><img src="{$img_dir}icon/order.png" alt="{l s='Back to orders'}" class="icon" /></a><a href="{$link->getPageLink('history.php', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a></li>

</ul>

{/if}

<link rel="stylesheet" href="https://www.resellerratings.com/images/js/dhtml_survey.css" type="text/css" />

<script type="text/javascript">

seller_id = 50266;

document.write('<'+ 'script type="text/javascript" src="https://www.resellerratings.com/images/js/popup_include.js"><\/script>');

</script>

  • Like 1

Share this post


Link to post
Share on other sites

Hi to all.

 

I need to edit the same page mentioned above: "order confirmation" page.

Really I need to TRANSLATE it, since I have a multilanguages shop and I need to set italian text (and FR and DE).

 

Could you please suggest me which page (or modul) I have to edit to change dynamically the text inside the page?

If I edit order-confirmation.tpl replacing italian text, I will have the same problem for other languages.

 

Thank you very much.

 

Katya

Share this post


Link to post
Share on other sites

In BO go to Localization>Translation, choose FO translations , template and click on language flag.

Then find Order confirmation and translate text

Share this post


Link to post
Share on other sites
Posted (edited)

Hi everyone,

Can you tell me the path of the $HOOK_ORDER_CONFIRMATION hook or I want to replace the reference to order id so.

Edited by niketri (see edit history)

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

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