(SOLVED) searching with search engine friendly url not working

Started by jeronimo078, June 10, 2012, 22:18:14 PM

Previous topic - Next topic

jeronimo078

Hello guys,

I have a problem, when i switch on search engine friendly url in the global configuration almost everything is working, except 1 one thing
The standard function of virtuemart is not working
When i type something in the box and search i go to the homepage
The url when i search is the following
http://www.grandcruwijnen.nl/index.php/search?keyword=test&limitstart=0&option=com_virtuemart&view=category
i use the GK ESport template of Gavick

Can anyone please help me out!!

Thanks in regards

Sincerely,
Jeroen, Grandcruwijnen.nl

jjk

I suppose it's a problem produced by your Gavick template. If I search for something with "Firebug" enabled in my Firefox browser, it tells me "$Gavick is not defined
Line 480". Also that template (and I guess your K2) are loading several additional javascript files including two more different versions of jquery, which are likely to produce conflicts when using VirtueMart.

You can try if it helps to disable 'Using the Virtuemart jQuery' in VM2 Configuration - Templates.

If it doesn't solve your problem, I would recommend to try another template for comparision, i.e. the free "ShopLab" template.

From what I frequently see in the forum, I think it generally is a good idea to avoid templates which use their own framework. They often load a lot of things conflicting with VM2.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jeronimo078

#2
Thank you for your answer
I found the solution:
In "/public_html/modules/mod_virtuemart_search/tmpl/default.php" or in "/public_html/templates/YOUR_TEMPLATE/html/mod_virtuemart_search/default.php"
Find line 4
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">

Change to
<form action="<?php echo JRoute::_('http://www.YOUR-SITE.com/index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">
CHANGE HTTP://www.your-site.com/ WITH YOUR OWN SITE


For users with SSL
<form action="<?php echo JRoute::_('https://www.YOUR-SITE.com/index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">
CHANGE HTTPS://www.your-site.com/ WITH YOUR OWN SITE