| Download details |
![]() |
||||||||||||||||||||||||||||
| They said it couldn't be done! Well we did it! 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)) { 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. |
|
|||||||||||||||||||||||||||


