Hide category on load and list products based on dropdown selection?

Started by mailblade, January 29, 2018, 12:33:13 PM

Previous topic - Next topic

mailblade

Good day all,

I would like to do the following: When the user clicks on the "Store" menu item, the "Store" will load as blank. There will then be a dropdown with 3 options, let's say they are "Warm,Cold and Dry". These 3 dropdown options are custom fields within VirtueMart.

So if the user selects "Warm", all products will be listed where the customfield value is = "Warm", and the rest will be hidden.

I was thinking to hide the products via Javascript and then go from there, though I'm not sure if I will need some PHP coding as well.

Studio 42

I solution can be to display child categories "Warm,Cold and Dry" as dropdown with an overide, or disable child category render and display the categories options in a module.

mailblade

Thanks for your reply.

I don't expect anyone to do it for me, just wanted some advice on what the easiest approach would be. I think category will be my best bet.