Jump to content

Positioning QUICK SEARCH and CART modules in TOPBANNER module


Recommended Posts

you can do it in several ways.

 

1) create new hook, insert {hook::exec("your_hook")} inside blocktop menu tpl file - then attach modules to this hook.

2) modification of tpl files (each module you want to insert to the top menu + blocktopmenu.tpl)  just leave top menu unclosed (</div>) and close this div in last module you want to attach to top menu. Remember about correct modules order on modules > postions page

Link to comment
Share on other sites

Hi Milos! I've tried as per option 1: I created hook in ps_hook table, inserted record in block top menu.tpl and on the last stage to add modules to the hook I am getting an error message " This module cannot be transplanted to this hook."  Please advise what I am doing wrong?

Link to comment
Share on other sites

Just one strange thing - when I am creating new hook in ps_hook table all the time system returning error result like this, but new hook showing in the system:

 

INSERT INTO `ps_hook` ( `id_hook` , `name` , `title` , `description` , `position` , `live_edit` ) 
VALUES (

NULL , 'aaa', 'my aaa', 'super hook', '1', '0'

);
 

 

 MySQL: b_help.png

#1062 - Duplicate entry 'aaa' for key 'hook_name'

Link to comment
Share on other sites

i transplanted module "blocktopmenu" to this new hook (aaa) without any problem

IXiPd34.png

 

 

 

i unhooked blocktopmenu from this section.

 

then i tried to transplant block cart, but i can't

PrlO2wh.png

 

it mean that block cart module .php file doesnt contain function that i suggested to use.

 

 

 

i think the problem is a bit different.

your topbaner contains image, it's full width,

there is no "space" to display additional blocks.

Link to comment
Share on other sites

×
×
  • Create New...