Jump to content

Position of Module in category not only homepage


klinki

Recommended Posts

Hi Chaps, 

I have setup a module for instagram and the content is shown well on the homepage. I can also change the position/order where the module is shown on the first page. So everything is fine from this perspective

https://bombahair.ch

image.thumb.png.08e6dcf34543b7c62fc27356b43afe57.png

image.thumb.png.50052b193bae18f8ce98b5fbb4d937f7.png

 

 

However I want the content to be shown here too

 

https://bombahair.ch/de/43-services-preise

 

image.thumb.png.302d8a2b948b531386c2f771afe1752f.png

 

Is there any chance to set the hooks accordingly? Is this configurable or do I need a developer instead to show the content on both places?

 

I am running PS 1.7.5.2

 

Thanks

image.png

image.png

image.png

Link to comment
Share on other sites

It depends...

PrestaShop 1.7 introduced a new way of developing modules, called widget. When a module is a widget, it can be hooked to any hook on your site.

That's the first step.

To be able to show anything on the category page, some hook should be available there. If there is no hook available there, you should add the call to the module in the tpl file responsible for displaying that category page.

If the module is a widget, it's enough to enter {widget name='modulename'}. If it's not, you can call the hook directly as described here: https://devdocs.prestashop-project.org/1.7/modules/concepts/hooks/

But it's also possible that the module's author assumed that the module should be displayed only on homepage and could implement some restrictions in the module to make it work correctly only there.

  • 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...