VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: sidali on May 06, 2012, 16:31:06 PM

Title: categorie filtering dosn't work
Post by: sidali on May 06, 2012, 16:31:06 PM
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
 
Title: Re: categorie filtering dosn't work
Post by: 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
Title: Re: categorie filtering dosn't work
Post by: sidali on May 06, 2012, 18:10:41 PM
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  :-[
Title: Re: categorie filtering dosn't work
Post by: balai on May 07, 2012, 10:33:45 AM
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.
Title: Re: categorie filtering dosn't work
Post by: sidali on May 08, 2012, 12:20:02 PM
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  :)