Skapamento Posted March 16, 2013 Share Posted March 16, 2013 (edited) Hi all, i am working on developing a website based on Prestshop. and i need to know how can i edit and optimize any module i need and placing it any where i need. as example: - moving tags block to header with the search form? - top horizontal menu? - cart block? the designer's and developer's guide that prestshop placed is very helpful, but it's doesn't meets my needs? this is my simple link: http://www.ibnqym.com/home/ thanks Edited March 17, 2013 by Skapamento (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2013 Share Posted March 16, 2013 if you want to change position of module (move it from for example left to right column) you need to use "transplant" feature located in modules -> position tab in your prestashop back office. In some cases you must also change html code of module + css stylesheet of it, because without changes module may looks weirdy in new places. 1 Link to comment Share on other sites More sharing options...
Skapamento Posted March 16, 2013 Author Share Posted March 16, 2013 if you want to change position of module (move it from for example left to right column) you need to use "transplant" feature located in modules -> position tab in your prestashop back office. In some cases you must also change html code of module + css stylesheet of it, because without changes module may looks weirdy in new places. may be i have a problem with this way! because i can't edit it never because it's muted ! example : http://cl.ly/image/1H1l2R3n452h can i make it by editing php files or writing a short hook tag code? great thanks vekia Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2013 Share Posted March 16, 2013 weirdy :/ you can but it isnt as simple as it seems, it's better to figure out why transplant doesnt work than to "rewrite" php source of modules ;-) which prestashop version you use? I see that 1.4, but which exactly? latest one? 1.4.10 ? 1 Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2013 Share Posted March 16, 2013 sorry it's again me btw. you use "transplant" feature or you editing module on list? you must click on transplant a module 1 Link to comment Share on other sites More sharing options...
Skapamento Posted March 16, 2013 Author Share Posted March 16, 2013 sorry it's again me btw. you use "transplant" feature or you editing module on list? you must click on transplant a module Sorry it's fault by me my prestashop version is 1.4.7 but i am designing for the last prestshop version. and it's my start with presta i got it now, i'll try then i'll be back. Great thanks Vekia ! Link to comment Share on other sites More sharing options...
Skapamento Posted March 16, 2013 Author Share Posted March 16, 2013 Sorry me again, i can't Transplant a module ! i tried many times and i got this message : This module can't be transplanted to this hook. may be it's the CHMOOD perimsions for files and folders? any help? Link to comment Share on other sites More sharing options...
razaro Posted March 16, 2013 Share Posted March 16, 2013 Like Vekia said you must do some changes to php files. Check this post for example http://www.prestashop.com/forums/index.php?/topic/51846-solvedhow-to-transplant-modules-in-the-left-or-right-column-into-center-column-in-the-homepage/page__view__findpost__p__336881 Link to comment Share on other sites More sharing options...
Skapamento Posted March 17, 2013 Author Share Posted March 17, 2013 Like Vekia said you must do some changes to php files. Check this post for example http://www.prestasho...post__p__336881 Thanks razaro, it's solved my problem ! but i got another problem after making changes in php files for top menu i need to know how can i edit $menu html? i need to add a <div> attributes before closing </li> in the top menu? my link: http://www.ibnqym.com/home/ - any help? Link to comment Share on other sites More sharing options...
razaro Posted March 17, 2013 Share Posted March 17, 2013 If your issue in this topic is solved you should edit topic title in your first post, in full text editor and add [sOLVED] in front. Also for your other issue you should make a new topic, but here is an answer. $menu HTML you edit in blocktopmenu.php, function makeMenu(). And for example for categories you add code to function getCategory, if (!empty($is_intersected)) { $this->_menu .= '<li '.$selected.'>'; $this->_menu .= '<a href="'.$category_link.'">'.$category->name.'</a>'; if (count($children)) { $this->_menu .= '<ul>'; foreach ($children as $child) $this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']); $this->_menu .= '</ul>'; } $this->_menu .= '</li>'; } 1 Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2013 Share Posted March 17, 2013 thanks for information that you solved your issue exactly as razaro said, is better to create new thread with new questions if it is not related to the main case in topic regards 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now