Author Topic: SOLVED: Multiply Vendors-on product.product_form page not showing all categories  (Read 1693 times)

duchess

  • Jr. Member
  • **
  • Posts: 59
A made a second vendor in my eshop. Everything works great, I made a special admin frontend panel for the second vendor, and etc., but when that vendor tries to add a product, from the frontend, the list of categories is empty, not showing the existing categories, only when he him self add some categories then it shows, but only his categories. Is there a way to allow all vendors to use all categories for their products?

Please help me, it is an emergency!

duchess

  • Jr. Member
  • **
  • Posts: 59
Re: Multiply Vendors - on product.product_form page not showing all categories
« Reply #1 on: February 24, 2009, 12:19:53 pm »
ok. i saw into the problem... on the product.product_form page the list of categories are shown by

$_REQUEST['product_categories']

but I can't find the page where that $_REQUEST value is made. I search trough ps.product_category page, but with no success. Any help????

duchess

  • Jr. Member
  • **
  • Posts: 59
Re: Multiply Vendors - on product.product_form page not showing all categories
« Reply #2 on: February 24, 2009, 13:19:04 pm »
ok. I found the solution, in case someone would need it.
Go to page: administrator/components/com_virtuemart/classes/ps_product_category.php
and under function named "list_tree" you have to comment this line:
//$q .= "AND #__{vm}_category.vendor_id ='$ps_vendor_id' ";
it is on, about 1103 code line.

Hope this could be usefull for someone.

Cheers.