Jump to content

tiledcode

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by tiledcode

  1. Is it still possible to override a controller in a theme ? Edit: I tried to override the controller by creating a <theme>/override/controllers/front/MyAccountController.php file and deleting the cache but it doesn't work...
  2. Hello, I'm developing a custom theme for my shop with prestashop 1.7.2. If I want to fully disable a page in the front office, how should I proceed ? For example, if i want to disable the "my-account" page, I could just delete the "controllers/front/MyAccountController.php" file and be done with it but it isn't right as it will disable the page for every theme... Is it possible to override the MyAccountController.php with an empty file in the theme for example ? Or is there a cleaner way to do that ? Thanks !
  3. Hello, We are using the classic theme for prestashop 1.7 as our theme base. I want to hardcode an img tag into the footer.tpl template file (to show payment partners logos) but it actually doesn't work as expected (the image is never found). I know that when you add an image in the _dev/img folder of the theme every image is given a hash-like name and referenced by this name in the final css file (computed by webkit). But it only works for css files. So, what is the right way to add an image in the footer (or any template file) ? Thanks, have a nice day
  4. Bonjour / Bonsoir, La mise à jour ne fonctionnait pas chez nous non plus jusqu'à ce que nous augmentions la limite de mémoire pour PHP (7.1 utilisé) le temps de la mise à jour. Passer de 128M à 512M a éliminé les erreurs. Modification à faire dans php.ini : ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit = 512M
  5. Hello everybody, I have overriden the AdminImportController.php and added a new translatable string to it using the new method. 'attachments' => array('label' => $this->trans('Attachments (x,y,z...)', array(), 'Admin.ToSort')) When I look at the translation tool in the B.O. neither the new string nor the new domain (Admin.ToSort) is shown. Is there something more to do ? Thanks Edit : Ok, I just read that the new translation system is not supposed to be working for contributor's modules, but should it work for everything else ?
×
×
  • Create New...