Search the Community
Showing results for tags 'routes'.
-
Hello can i please can anyone help me with clear example of a working custom route to a controller in a custom module? the tutorial on that is quite unclear an i am still unable to create a working route to a controller in the module i am building. Thanks.
- 5 replies
-
- 1
-
-
- payment module
- custom routes
-
(and 2 more)
Tagged with:
-
Hello, probably the topic has already been addressed, I did a search but I did not find solutions ..! The problem is that if I click on a color from miniatures on products listing, the URL is correct but as the page loads, PrestaShop redirects the visitor to the default combination (color and width). How can I avoid this redirection/route? PHP or Js? I haven't find the redirection on Chrome Network 😓 NB: The url that appears as soon as you click on the color from the miniatures is the same as the one that appears when you click on the color from the product sheet.
- 8 replies
-
- prestashop 1.7
- redirected
-
(and 2 more)
Tagged with:
-
According to this Prestashop blog article, there is a way i can get pretty module urls like "http://www.yourstore.com/module/mymodule/orders/details/42". I found next line in Dispatcher "loadRoutes" method, which i assume is responsible for getting such result: $modules_routes = Hook::exec('moduleRoutes', array('id_shop' => $id_shop), null, true, false); But i can't find neither documentation on "moduleRoutes" hook, nor any examples of it's usage. Also there is no mention of "moduleRoutes" hook on Prestashop hooks documentation page. Googling on "prestashop custom routes" got nothing. So the question is how do i get pretty module urls as they were described in above-mentioned article?
- 4 replies
-
- routes
- dispatcher
-
(and 2 more)
Tagged with:
-
Hi I have installed the module Password recovery & High Security Password Storage v1.1.1 - by MADEF IT This friendly SEO routes are not working for this module but are for rest of site. The php code is public function hookModuleRoutes() { return array( 'module-passwordsecurity-recoverpassword' => array( 'controller' => 'recoverpassword', 'rule' => 'passwordlost/recover', 'keywords' => array( 'module' => array('regexp' => '[\w]+', 'param' => 'module'), 'controller' => array('regexp' => '[\w]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', 'module' => 'passwordsecurity', 'controller' => 'recoverpassword', ), ), 'module-passwordsecurity-changepassword' => array( 'controller' => 'changepassword', 'rule' => 'passwordlost/change', 'keywords' => array( 'module' => array('regexp' => '[\w]+', 'param' => 'module'), 'controller' => array('regexp' => '[\w]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', 'module' => 'passwordsecurity', 'controller' => 'changepassword', ), ), ); } I get a 404 every time I try to go to one of these pages accessing such as http://localhost/passwordlost/recover . When I access like this it works perfectly fine. http://localhost/index.php?fc=module&module=passwordsecurity&controller=recoverpasswrod Does anyone know what is wrong or how I can troubleshoot this? I wasnt able to find any relevant info in the logs I was looking at. Thank you.
-
Hi, I would like to modify my product url to look like this: {category}-{id}-{rewrite}-{image_id}.html Where image_id is a custom string that indicates image id from fotolia. So my question is how can I add custom string to my product url? update: I dont know if Im doing it right. I would like to integrate fotolia with prestashop. My idea is that I added categories to prestashop like "City", "People" etc. and when someone click on that category fotolia pictures are displayed by api. In my shop I would like to have few products like: "painting", "stickers" etc How to easyly connect fotolia picture with product? Thanks in advance!