Web Design Devon

affordable web design devonWe offer affordable, professional web services including:

Web design, e-commerce, SEO, Project management

Contact us for a free quote

 

E-commerce

 

Joomla Specialists

JoomlaDo you run a Joomla site? Need some new development?

Please get in touch to see how we can help you.

Blog

Virtuemart manufacturers problem solved

E-mail Print PDF
User Rating: / 4
PoorBest 

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

You are here: Blog