Archon Posted March 11, 2013 Share Posted March 11, 2013 Hi everyone. I have a question regarding prestashop. I have a landing page (custom html file) in which I want to include the menu module from prestashop (a module that I have). I know that I need to include the config from prestashop so the connections to the database can be made, but I don't know how I include my menu from prestashop to the landing page (custom html page). Can anyone let me know how I can do that? It will be highly appreciated. Regards, Florin Link to comment Share on other sites More sharing options...
NemoPS Posted March 12, 2013 Share Posted March 12, 2013 You can only include it if the page is processed with smarty. If it is, you can create a new hook (in 1.5.3.1 use {hook h="nameofthehook"}) and add the new hook function to the menu. Otherwise, you can also use standard hooks but be sure you remove other contents. One note: you need to assign the hook execution first, so you will need to run the page through a controller embedded in the system. You should definitely know a lot of smarty before trying this 1 Link to comment Share on other sites More sharing options...
Archon Posted March 12, 2013 Author Share Posted March 12, 2013 Hi Nemo1 and thx for the reply. My problem is I know a little of prestashop to modify current modules and put custom fields in registration etc. But I don't understand smarty that good. My custom html file is like a landing page (doesnt have anything to do with prestashop). I use prestashop 1.4.6.2 . If you could tell me what to include in my html file it would be great. Regards, Florin You can only include it if the page is processed with smarty. If it is, you can create a new hook (in 1.5.3.1 use {hook h="nameofthehook"}) and add the new hook function to the menu. Otherwise, you can also use standard hooks but be sure you remove other contents. One note: you need to assign the hook execution first, so you will need to run the page through a controller embedded in the system. You should definitely know a lot of smarty before trying this Link to comment Share on other sites More sharing options...
NemoPS Posted March 12, 2013 Share Posted March 12, 2013 Uh, well I'm afraid the topic is much broader than it might seem. If you don't know enough about smarty, i strongly discourage you do this. try reading the official smarty docs first: http://www.smarty.net/documentation Then, have a look at prestashop's controller (mainly frontcontroller for your version) and see how they manage hooks. Once you grasp that, and are able to use smarty to include your own tpl, you can start testing the implementation Link to comment Share on other sites More sharing options...
Matt Serralta Posted March 12, 2013 Share Posted March 12, 2013 Hello, Many users create a sub-domain for example shop.mydomain.com or a directory www.mydomain.com/shop. On your custom landing page, you can have a link to your shop, allowing your users to navigate to it. That way, you do not have to worry about about smarty or anything. Would that accomplish your mission? Link to comment Share on other sites More sharing options...
Recommended Posts