Blog
Virtuemart manufacturers problem solved
During a recent virtuemart build, I was trying to get the search by manufacturer module working but had the problem that if you used the drop down box, it would take you off the virtuemart page and put the result into the homepage. Essentially, it was going to www.mysite.com/index.php instead of com_virtuemartThis was useless as the homepage had different modules in it.
After a few hours of searching the virtuemart forum, I just couldn't find an answer. Other people had asked the question (or at least similar) but no one seemed to have an answer.
I decided to change my search criteria and see if perhaps the answer was hidden in a different question.
Eventually I found it...(this only works with Apache!)
Go to mod_virtuemart_manufacturers.php (in the site modules folder) and look for the following around line 78
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" name="vm_manufacturer">
And change this to
<form action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post" name="vm_manufacturer">
and bingo, the manufacturers results now appear in www.mysite.com/index.php?option=com_virtuemart&page=shop.browse&manufacturer_id=
Sorted
I hope this has been of use to someone and prevents them having to go through the laborious process I had to
James



