Language Preference - Select

Overview Search Downloads
Download details
VirtueMart Vendors Module 1.0.0

They said it couldn't be done! Well we did it!

This module makes vendors truly capable in VM 1.1.3 and 1.1.4. Just install, edit files, publish and you will start to see a list of the vendors in the module. This will list all vendors in module, then as category changes it changes vendor list to category. Will also display all vendors products if you click on a vendor name. We took this module off of the manufacturor module and kind of made a duplicate. But with the additions to Joomla! that were needed to make vendors work.

This is a Joomla! 1.5 module and for VirtueMart 1.1.3 and 1.1.4, we do not promise anything for another version. This has been tested on Joomla! 1.5.14.

Since the VM component doesn't support true Vendors, then you will have to install this module then edit two files in VM to make it work right.

So you do need to edit a few files to make it work right.

Edit the file "administrator/components/com_virtuemart/html/shop_browse_queries.php" and on line 176 just below this statement:

if (!empty($manufacturer_id)) {
$table_names .= ',`#__{vm}_product_mf_xref`';
$where_clause[] = "manufacturer_id='".$manufacturer_id."'";
$where_clause[] = "`#__{vm}_product`.`product_id`=`#__{vm}_product_mf_xref`.`product_id` "; }

Add this:

if (!empty($vendor_id)) { $where_clause[] = "`#__{vm}_product`.`vendor_id`='".$vendor_id."'"; }

Edit the file "administrator/components/com_virtuemart/html/shop.browse.php" and on line 131 just below the manufacturer_id statement add this:

elseif( $vendor_id) { $db->query( "SELECT vendor_id, vendor_name, vendor_store_desc FROM #__{vm}_vendor WHERE vendor_id='$vendor_id'"); $db->next_record(); $mainframe->setPageTitle( $db->f("vendor_name") ); $browsepage_lbl = shopMakeHtmlSafe( $db->f("vendor_name") ); $tpl->set( 'browsepage_lbl', $browsepage_lbl ); $browsepage_lbltext = $db->f("vendor_store_desc"); $tpl->set( 'browsepage_lbltext', $browsepage_lbltext ); $browsepage_header = $tpl->fetch( 'browse/includes/browse_header_manufacturer.tpl.php' ); }

That's all you have to do, everything should now work just fine.


Size 3.17 KB
Downloads 3416
Language English
Licence GNU/GPL
Author Joel DeVenney
Created 2009-10-08
Created by admin
Changed at 2010-02-19
Modified by admin