News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Turn off SEF for one module (Search) ?

Started by gripped, May 23, 2014, 20:06:35 PM

Previous topic - Next topic

gripped

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.

  • Special user logged in works
  • Normal user logged in goes to 404 page
  • Not logged in asks user to login

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.

GJC Web Design

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)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gripped

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 ?

GJC Web Design

#3
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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gripped

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 ?

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gripped

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  :)