Jump to content

A module hooked to 2 places


Recommended Posts

Hi All

 

When a module is hooked to 2 places, how do you control where you want it to appear?

 

For example,. the specials module is hooked to the header and to the right column at the same time. How do you predict where the block will appear? would it appear on both locations?

Link to comment
Share on other sites

Hi Mike!

 

Thank you for your response!

 

The specials block for example is hooked to the right column, left column and header. However it only shows in the right column.

Is there some kind of priority for it to appear?

Link to comment
Share on other sites

Hi Mike!

 

Thank you for your response!

 

The specials block for example is hooked to the right column, left column and header. However it only shows in the right column.

Is there some kind of priority for it to appear?

 

Can you please post your URL so that I can take a look at this for you?

 

-Mike

Link to comment
Share on other sites

oh, my site is still in a mess, I'm still building it. But if you can give me a tip for whatI'm doing, I'd be happy

 

I have hooked the specials block to the home, I want it to show up exactly under the slider I created for the featured products. However, I was the specials block to show 3 special items instead of a random one. So in the module blockspecials.php file, I've replaced the function Product::getRandomSpecial with Product::getPricesDrop (please tell me if that's the right way to do it).

 

However, the returned variable $specials is now an array of items. How can I parse it in the blockspecials.TPL file in order to display the 3 item?

 

The url: http://serialindulgence.com/shop/

 

Thank you!

Link to comment
Share on other sites

×
×
  • Create New...