Hello friends
I have problems with my PS 1.6.1.6 installation, which shows "Controller not found" error when the translations page in back office is accessed. I am working with a prestashop site which was configured by someone else and customer wants me to add a new module there.
Due to this language controller error, I was trying to find a workaround to implement translations for my module and rocky's suggestion worked perfectly for me. Thank you so much Rocky.
But I have another problem with translations, which I could not figure out how to solve. Before putting my problem, let me tell you that I am very much a beginner in Prestashop and this is the first module in my life that I am creating on Prestashop .
In my module file ('mymodule.php'), I am adding a template as a hook to show in order details page. This is my install method in 'mymodule.php'
public function install() {
if(Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
if(!parent::install() || !$this->registerHook('displayOrderDetail'))
return false;
return true;
}
And here is the hooking function (not sure if this is the right terminology)
public function hookDisplayOrderDetail($params) {
return $this->display(__FILE__, 'myordertrack.tpl');
}
All translations are working on module.php (as I can see the translated strings in back office for module description and on config page). But inside 'myordertrack.tpl', I don't see translated strings showing on order details page. For example:
<h1 class="page-heading">{l s='Order Tracking' mod='mymodule'}</h1>
This shows 'Order Tracking' itself as the heading on order details page. But I have added translations for this too as I did for module page translations. This is the translation string I used in 'en.php' under 'mymodule' folder
$_MODULE['<{mymodule}prestashop>mymodule_f6a566b2cb5358a6d47d58e4d13df905'] = 'Order Shipment Status';
Can anyone please guide me to solve this?
Thanks & Regards
Sujith