VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Products, Prices, Tax and Categories VM 1.1 => Topic started by: mongolor on March 01, 2010, 09:17:58 am

Title: Adding new product(Categories)
Post by: mongolor on March 01, 2010, 09:17:58 am
Hello!
I have in my administration panel when i trying to add a product, categories search, but before i always had a list of categories.
How i can get it back? Thanks.

(http://i024.radikal.ru/1002/92/0f455195e98bt.jpg) (http://i024.radikal.ru/1002/92/0f455195e98b.jpg)
Title: Re: Adding new product(Categories)
Post by: bekasgr on March 01, 2010, 09:52:30 am
Probably you added new categories.
After a certain number of categories (i do not remember how many) the list disappears and a text box comes into its place.
This is done in order to make it easier for site with too many categories (imagine having a list with 700 lines !!!).
After you key in the first 3 characters all matching categories will appear (using AJAX).

I am not an expert so I hope this helps ...
Title: Re: Adding new product(Categories)
Post by: rb on March 01, 2010, 16:32:13 pm
The limit is 200 Categories before the drop down disappears and the search text box appears.  You can change the value of 200 in this file:
     administrator/components/com_virtuemart/html/product.product_form.php

Around line 259, find this:
Code: [Select]
if( $number_of_categories > 200 ) {You can change the 200 to any number you like, but as bekasgr says: imagine having a list with 700 lines.
Title: Re: Adding new product(Categories)
Post by: mongolor on March 01, 2010, 18:07:52 pm
thank you for help!