VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Cococoder on June 28, 2019, 13:14:42 PM

Title: Virtuemart Product Search Module SEF URLs [SOLVED]
Post by: Cococoder on June 28, 2019, 13:14:42 PM
Hi guys,
I have some issues with the Virtuemart Product Search module SEF URL. It includes the /component/virtuemart in the path.

I created an hidden menu for the joomla search results without results, I don't find a way to create an hidden menu for the virtuemart product search module specifically. The virtuemart search that you enable from the configuration works perfectly but I can't prevent home page module to display which is not desirable. The /component/virtuemart part of the URL create an issue when navigating back to the first page, as it becomes  /component/virtuemart/?keyword=somekeyword and it returns an empty page.
Same issue with Beez theme. No issue when SEF is disabled.
I post in bug report as there is a search implemented in virtuemart that works properly (so I guess the module should work properly out of the box too). I suspect something is wrong with the routing.

I tried to modify the code of the search module with the code from \store\components\com_virtuemart\views\category\tmpl\default.php it solves the issue when I do a search from a category page, but the issue persists on the home page.

PHP version:    7.2.18
Joomla: Joomla! 3.9.8 Stable
VirtueMart 3.4.2
Title: Re: Virtuemart Product Search Module SEF URLs
Post by: PRO on June 28, 2019, 22:14:28 PM
do you have a menu item to the vmart frontpage?



and doesnt the search module allow you to set itemid ?
Title: Re: Virtuemart Product Search Module SEF URLs
Post by: Cococoder on July 01, 2019, 09:07:54 AM
Thanks for the reply.
Menu item for vmart frontpage is set.
The module does allow to set an item id and it is set (don't remember having done that). I will try to remove the id as I have a com_search item in an hidden menu.
I'll post the results of the troubleshooting step soon.
Title: Re: Virtuemart Product Search Module SEF URLs
Post by: Cococoder on July 01, 2019, 09:47:44 AM
OK solved, if you have a com_search menu item, then the item id field for virtuemart search module shall be left empty. Virtuemart shall be set as the home page too otherwise the pagination issue persists.
Thanks for the pointer.
Title: Re: Virtuemart Product Search Module SEF URLs
Post by: Studio 42 on July 01, 2019, 09:50:08 AM
com_search have nothing to do with the Product Search module
You have to add a menu item > virtuemart > category with no category and manufacturer set.
Title: Re: Virtuemart Product Search Module SEF URLs [SOLVED]
Post by: Cococoder on August 16, 2019, 12:03:59 PM
OK thanks for those precision. My statement was purely empirical. I'll try your solution asap. Thanks taking the time to clarify how this really works