VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: gripped on May 23, 2014, 20:06:35 PM

Title: Turn off SEF for one module (Search) ?
Post by: gripped on May 23, 2014, 20:06:35 PM
Now that I finally have my migrated (from 1.1.9) VM site working as I want it (it's been a fun six weeks !) I return to one issue I put on the back burner.

With the VM Search module , if Joomla SEF is enabled I have this issue when searching.

This is not a core problem as when I reverted to the standard vm_beez template on my test server it worked. The template I'm using is Shape5 - Vertex.
As soon as SEF is disabled it works.

So my thinking is if I can disable SEF for this module only, it might fix the issue.
Or if anyone has any other idea fire away.

For the time being the Search Module is disabled.
Title: Re: Turn off SEF for one module (Search) ?
Post by: GJC Web Design on May 23, 2014, 20:08:41 PM
if it's only with that template then one assumes the mod is being over -ridden - try with it disabled (just change the folder name in the html folder)
Title: Re: Turn off SEF for one module (Search) ?
Post by: gripped on May 23, 2014, 20:16:37 PM
Thanks for the input but I should have said.
There is no mod_virtuemart_search folder in the templates html folder so I don't think it's to do with an override ?
Title: Re: Turn off SEF for one module (Search) ?
Post by: GJC Web Design on May 23, 2014, 20:26:59 PM
Hard to see then how a template can have the effect you mention.... there has to be something different between the two search routines

it just sends a GET with a few params

keyword   xxxx
limitstart   0
option   com_virtuemart
view   category
Title: Re: Turn off SEF for one module (Search) ?
Post by: gripped on May 24, 2014, 18:56:45 PM
OK I was wrong. It is happening with vm_beez.

I did test it before , as I said, and it worked but I guess I must have been logged in as admin / special.

So maybe this is a bug in VM ?

Question remains. Is there a way to turn off SEF for a module ?
Title: Re: Turn off SEF for one module (Search) ?
Post by: GJC Web Design on May 25, 2014, 11:38:59 AM
QuoteQuestion remains. Is there a way to turn off SEF for a module ?

think far better to fix the problem - works perfectly on a std install with full SEF - so somethings no right on your site

checked conflicting aliases on ALL menu items (incl. hidden, unpublished, trashed et ) some thing is conflicting with the normal generated url

std url with full sef if - e.g. root menu to VM is products
products/search?keyword=shovel&limitstart=0&option=com_virtuemart&view=category

is yours?

if you change the form line in the search mod default template to

<!--<form action="<?php #echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">-->
<form action="<?php echo 'index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ?>" method="get">


you get

index.php?keyword=shovel&limitstart=0&option=com_virtuemart&view=category

Title: Re: Turn off SEF for one module (Search) ?
Post by: gripped on May 25, 2014, 17:58:19 PM
OK I've fixed it.

Your talk of Menu items helped, though there were no conflicts.
I created a new menu item 'VM Search' of type VirtueMart ยป Category Layout in a hidden menu.
The id was 279 so I put 279 in Set ItemID of the search modules settings.
Now it works. Not sure why but it does  :)