How to prevent auto generation of associated modul

  • Posts: 250
  • Thank you received: 7
11 years 7 months ago #139894

-- url of the page with the problem -- :currently ofline
-- HikaShop version -- :HikaShop Business: 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.1
-- Browser(s) name and version -- : Firefox 26
-- Error-message(debug-mod must be tuned on) -- : none

I have a main menu with an item called "Shop" which is configured to show the top level product categories as a Hikashop content menu item. The categories display just fine with a custom template, but every time I make a change to the content menu settings and save it iHikashop generates an associated product listing module which I don't want. Sometime it say I have saved without an associated module but when I go back into it the module is still there. I try and delete the module and remove the association but each time another one is generated. In the back end I can have the module is shown as unpublished (see screenshot) but I am still seeing products displayed under the categories.



I can understand that certain processes are automated to make things easier but this just doesn't work. How can I globally stop these modules being automatically generated?

Thanks,

Ian

Attachments:
Last edit: 11 years 7 months ago by iedwards.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139924

Hi,

I think that the easiest way is to change the options of the menu to display only the direct sub elements, and not have products in the main category, by this way you will have only the categories displayed.

Or you can create a Joomla article for your shop page, and include a category listing module inside.
Doing like that, you will have the desired content.

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 7
11 years 7 months ago #139950

Hi Xavier,

I have been doing all those things and much of the time it's ok, but I still get these modules generated which clutters up the modules listing and makes it even harder than it already is to track down which module is doing what.

What made this a big problem for me was that in the main configuration I had set, in the default options for DIV's, the "Type of item layout" to be a custom template I had made for categories. I have a lot of category pages and I thought this would help speed things up. Because this is a category template it doesn't exist for products. When a product display module is randomly generated it tries to use this default template setting. Because the product display module has been automatically configured with a template it can't find visiting the associated category page from the front end in a browser generates a Page not found ERROR 500 even if the product display module is unpublished. In other words this "feature" broke my site in a totally random and unexpected way. It iis also quite hard to delete or unassociated these product modules as they keep being regenerated.

So please - feedback from a user - make it possible to turn off the auto generation of product display modules!

Thanks,

Ian

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 7
11 years 7 months ago #140244

Just to add to this, I am finding that if there is a product module associated with a category menu item the product module is displayed regardless of whether it's published or not..

Ian

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #140553

Hi,

No, you don't want to remove that associated module. If you remove it, when you click on a category, you won't see any products anymore as it's that associated module's role to display them. And that's why the system regenerate them automatically as otherwise, your category listing would be useless.

If you don't want the products to display when they are not directly linked to the current category, but only to the child categories of the current category, what you need to do is to change the "sub element filter" option of that associated module to "direct sub elements".

The enable state of the module via the joomla module manager is not taken into account by the menu as the enable state of the modules manager dictates whether the module will be displayed by the template or not, while the enable status of the module in the "associated modules" option of a menu dictates whether it will be displayed by the menu or not, and so these are two different things.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum