Jump to content
Sign in to follow this  
Sito Lab

[SOLVED] add new hook in top (thanks Vekia)

Recommended Posts

I followed the guide vekia, slide to lock the module in the top position, I would like to know if it is possible to add 2 modules always on top, like the picture

 

Cattura.JPG

 

I hope I was clear enough on my question

 

thanks

Edited by lui1969 (see edit history)

Share this post


Link to post
Share on other sites

Technically you can move every module or block to hook top. All you need to do is adding some code in module's main .php

public function hookDisplayTop($params)
	{
		return $this->hookRightColumn($params);
	}

You just need to remember to use proper source for $params. In example above module's params are set in function hookRightColumn.

 

After that you can reposition your module with admin's Modules -> Positions : Transplant a module

Share this post


Link to post
Share on other sites

thanks for your reply, I tried this method, but it does not work. maybe something wrong, so I asked for your help

Share this post


Link to post
Share on other sites

hello

i've noticed that this is a part of my guide.

use this module: homeslider top

 

html box free module allows to use it in top section, so there is no problem.

just use correct css styles, both for slider and in html box to dispaly these modules inline

Share this post


Link to post
Share on other sites
Vekia you, I'll follow you forever, and are always on your website, they are also a fan of yours.

 

I managed to make it work, but I can not put it like in the picture, that is, all 3 on a line just like in the picture.

 

Use your html form box

 

 

 

modification to homeslider has already been done following your guide without the module homeslider you described

Edited by lui1969 (see edit history)

Share this post


Link to post
Share on other sites
I think it's a little too big for me this project. I'll do the tests, let's see if I can.

 

thank you all

 

 

 


last information, hooks, to put it all online:

 

html box + slider menu + html box

 

I have to insert the hooks in css and html?

Edited by lui1969 (see edit history)

Share this post


Link to post
Share on other sites

you can't use html block in two positions at the same time, moreover, you can't use any other module in two positions in the same hook. it's impossible, this is how prestashop works.

 

in this case you will have to use other module to insert contents

if it is possible - please follow my suggestions, paste sample code to html box that you want to use and then - share url to your website

i will do everything else :P

Share this post


Link to post
Share on other sites
ah, ok, I thought it could be done using html box on the right and left and homeslider in the middle, I did not think to do it only with html box, and I honestly do not know how to put homeslider the center and html box on the right and the left.

 

using only html box how to insert an image slider in the middle?

 

 

however, this is the website that I'm preparing for a client

 


Share this post


Link to post
Share on other sites

it will be much easier to use both:

 

- modified homeslider (i pasted link above)

- html box module

 

then somewhere in global.css use these styles:


.bx-wrapper {
display:inline-block!important;
float:left;
width:580px!important;
}
.bx-window {width:580px!important;}

 

 

effect:

7PTKSvX.png

Share this post


Link to post
Share on other sites
vekia wonderful, is just what I wanted to do,

 

thank you thank you very much, I start to work immediately to test

Share this post


Link to post
Share on other sites

if you want to add another module one the left hand side, it will be necessary to modify it to, but it will be easy :) with css styles only and switiching module position under modules > positions tab

 

anyway, if you will need help, just let me know here :)

Share this post


Link to post
Share on other sites
thanks again Vekia, thanks to your intervention is just what I wanted to do. I wanted to ask just one last information, if in your form, html box, I would like to insert scrolling text with the latest arrivals?

 

because I carry out the tests, entering the command marquee but everything goes bust

Share this post


Link to post
Share on other sites

Can you share url for this shop? I'm just curious how you do it :)

Share this post


Link to post
Share on other sites

Can you share url for this shop? I'm just curious how you do it :)

 

 

hello, sorry for the delay in response, what you need to know, I'd be quite happy to give you the answers

Share this post


Link to post
Share on other sites

the customer decided to leave it, did not want another block. The right one will be changed, the new products will be placed at random

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More