[-] FO : FixBug #PSCFV-9879 Email confirmation message not present

This commit is contained in:
Jérôme Nadaud
2013-07-24 19:24:22 +02:00
parent ef22b9d5d4
commit 541a4525b5
2 changed files with 7 additions and 0 deletions
@@ -114,6 +114,8 @@ class OrderDetailControllerCore extends FrontController
if (Tools::getValue('ajax') != 'true')
Tools::redirect('index.php?controller=order-detail&id_order='.(int)$idOrder);
$this->context->smarty->assign('message_confirmation', true);
}
else
$this->errors[] = Tools::displayError('Order not found');
+5
View File
@@ -397,6 +397,11 @@
</ol>
</div>
{/if}
{if isset($message_confirmation) && $message_confirmation}
<p class="success">
{l s='Message successfully sent'}
</p>
{/if}
<form action="{$link->getPageLink('order-detail', true)|escape:'html'}" method="post" class="std" id="sendOrderMessage">
<h3>{l s='Add a message'}</h3>
<p>{l s='If you would like to add a comment about your order, please write it in the field below.'}</p>