News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

categorie filtering dosn't work

Started by sidali, May 06, 2012, 16:31:06 PM

Previous topic - Next topic

sidali

hi every one ;
i'm very beginner in virtumart... i have a multitemplate website  each template is associated with a category of products
the probleme is in the new products module , i have created a module for each template with using the category filter and choosing the category adequate
but the results are all the same ;the module bring me all products from all categories

plz any idea will be very welcome

thank you
 

balai

You have to add a hidden input with an itemId for each instance of the module.
The template assignment is being done in specific menu items

sidali

Quote from: balai on May 06, 2012, 18:03:26 PM
You have to add a hidden input with an itemId for each instance of the module.
The template assignment is being done in specific menu items

thank you balai. :)
can you explain a bit more ... what file shoud i modifie  :-[

balai

I think you have to edit the helper.php of the module "mod_virtuemart_category".

You can create an extra parameter/field in the module's xml where you will give the itemID.
Then you will get that itemID in the module's helper.php and add it in a hidden input.

sidali

solved by setting the page containig the modules as "display categories" and select the adequate category
and assigne  each product to the parent category as well
thank you  :)