Jump to content

sujithm

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Activity
    Web development agency

Recent Profile Visitors

2,204,329 profile views

sujithm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for your quick response In fact, this is a new module which I am developing and there is no folder like "mymodule" inside themes/<my_theme>/modules/. So I may have to create one there and add translation strings for my module, right? Let me try that way. Thanks & Regards Sujith
  2. 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
  3. Excellent script and I was looking for this for quite a while. This helped me to remove the test data before publishing my site. Is there any script similar to this to remove categories, orders and users? Thanks in advance
×
×
  • Create New...