VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: encreplus on October 29, 2020, 23:33:45 PM

Title: Search Results
Post by: encreplus on October 29, 2020, 23:33:45 PM
Good day

Is there a way in the search results to also show the categories of all product ,

All my categories are printer model , so would be great to show also a list of the categories in the search results
Title: Re: Search Results
Post by: pinochico on October 30, 2020, 01:00:57 AM
Quotea list of the categories

List of which categories?
1. all from eshop?
2. only from search result products?

---

1. Of course
- Go to template for category, create override, put to your template, add custom position for module inside search result php code for category layout (use right code for module rendering), create module VM categories in admin, add to your new custom position and style it
- Go to template for category, create override, put to your template, add custom php code for rendering subcategories from template for VM categories, style it

2. Custom developing
Title: Re: Search Results
Post by: encreplus on October 30, 2020, 13:42:15 PM
I need categories from the search results
Title: Re: Search Results
Post by: pinochico on October 30, 2020, 14:16:02 PM
Exactly, then you need make point 2
Title: Re: Search Results
Post by: balai on October 30, 2020, 17:01:19 PM
Or use Customfilters for your search and the it's filtering module, to display the relevant categories, after the search.
https://breakdesigns.net/extensions/joomla/custom-filters