Jump to content

[SOLVED] How can i freely editing modules?


Recommended Posts

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 by Skapamento (see edit history)
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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

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 ?

  • Like 1
Link to comment
Share on other sites

sorry it's again me ;)

 

btw. you use "transplant" feature or you editing module on list?

 

NyZiLbG.png

 

you must click on transplant a module

 

Sorry it's fault by me :D

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

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

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>';
 }

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...