Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by mad_griffith

  1. did you find out how to get the cookies?
  2. Hey guys, you should follow the instructions reported here: https://www.prestashop.com/forums/topic/623913-17-corejs-uncompiled-version/
  3. I set up a custom mailer server and the 504 error seems to be gone now.
  4. Hi, I am still trying to track down why I get the same product three times in the final order. I see this error in my logs: Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart
  5. Ok, I think I fixed the issue by simply reuploading the same file (PaymentModule.php). The issue I believe to be due to an update not going smoothly.
  6. Hi, I am trying to track down a bug (there is a certain product that always gets appended to the order, even if the user hasn't added it to the cart) and am wondering what is the controller and action that fire when the user is at the last checkout step and, after selecting the payment method, clicks on the button to submit the order. Is Javascript also involved somehow? I see that in core.js there is a Payment.init() call. What is it exactly doing? Thank you.
  7. I am building a module and am wondering how I can include the content of a .tpl file in the 'description' element of the array inside renderForm(), containing the admin form. Something like the following just outputs an empty string: 'description' => $this->fetch('module:' . $this->name . '/views/templates/admin/instructions.tpl'), Do you have any ideas? Thank you.
  8. Hi, I updated PS from the to the via the 1-Click Upgrade module and this happens to the back end. The menu looks destroyed and other elements in the page as well. I already flushed the cache. What else can I do?
  9. Hi! Have a look at e.g. the classic theme, in the _dev folder. The sources of those files (JS and SCSS) are expected to be edited in WebPack, which then bundles them together in the final theme.js and theme.css files. You need NodeJS installed in order to run WebPack. The admin theme appears to be based on similar requirements (though more loosely: all I can see is a bundle.js with some references to WebPack in the code).
  10. Hi, I've never tried to edit the admin theme before, but maybe you should install Webpack in order to edit the theme's css/js files? Otherwise, you might just duplicate it and use that instead.
  11. Hi, I am trying to override the contactform module's main php file from another module, but the override is simply not taken into account. The structure I am using is: my-module/override/modules/contactform/contactform.php Inside this file is the following code, but it is not executed (die()ing it doesn't do anything at all): class ContactformOverride extends Contactform implements WidgetInterface { public function renderWidget($hookName = null, array $configuration = []) { $this->smarty->assign($this->getWidgetVariables($hookName, $configuration)); return $this->display(__FILE__, 'views/templates/widget/contactform.tpl'); } } Can anyone shed some light on where the problem could be? Thank you.
  12. Hi, under which conditions the "in transit" email is NOT sent to a customer? This is because the in transit email only fired once out of 50 orders on my Prestashop website.
  13. Hi, I have a module with its config form in a .tpl file (so, no Helper class). I need to serialize values and the AJAX picks them up correctly (the Save button is bound to an AJAX request), but then they are not saved in the DB at all. These are the tags as they appear in the .tpl: <textarea class="form-control" name="product_analysis[]">My first text</textarea> <textarea class="form-control" name="product_analysis[]">My second text</textarea> The product_analysis field is currently set like this: array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString') Can you help me out please? Thank you!
  14. In particular, how can I override Prestashop's custom events? Such as prestashop.on('updateProduct', function() { }); Thank you
  15. Hi, I am building a theme based on the Classic one. How can I override the core.js file in the theme's root folder safely (e.g. the best practices for overriding the many event bindings in that file)?
  16. Ok, thanks a lot for the explanation. More suggestions are welcome, but I think in my case it's pretty clear from the tpl vars what needs to be done on the tpls side, so I will just place the tpls in the theme.
  17. Hi, what is the directory structure to observe when you want to override, within a module, an existing theme template (specifically "mytheme/catalog/_partials/product-variants.tpl")? And besides that, would anything else be required from my side? Thank you.
  18. Hey I did exactly that last night and it worked in the end. Thank you.
  19. Hi, I have PS and I am having issues overriding a PS class file within a module I am creating. The class is Dispatcher and all I need to do is adding some routing related stuff in the setRequest() method. Therefore, all I am doing is putting the Dispatcher.php file in mymodule/override/classes and having the altered setRequest() method only. This unfortunately doesn't seem to work. I am vardumping but the var dump doesn't show up. Please note the override works fine if I am putting it in the /override folder located in the root. Any suggestions? Thank you.
  • Create New...

Important Information

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