VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: serazoo on November 22, 2013, 20:53:55 PM

Title: Custom field : Long drop down list for a product...please help
Post by: serazoo on November 22, 2013, 20:53:55 PM
Hello All  :-[

I've pulled many hairs off my head trying to figure out how to make a LONG drop down list in "Custom field"...

My client sells custom made pillows...with choices of different LONG phrases that could be handdrawn on the pillow.

It is a cart variant but no aditionnal cost

maximum length of a drop down is 255...I need it to be a 1000...I've searched a couple of PHP...found in ADMIN    helper/html.php  changed 200 to 1000

I managed to get my phrases in there in backend...but now the frontend the look must me modified too...to 1000...I'm stuck

Is there a way please....to have a long drop down list ? Is there a plugin I can buy ?

please help
Sandra
Title: Re: Custom field : Long drop down list for a product...please help
Post by: Maxim Pishnyak on November 23, 2013, 13:17:49 PM
URL with test product?
Title: Re: Custom field : Long drop down list for a product...please help
Post by: serazoo on November 23, 2013, 14:47:51 PM
Thank you Maxim for taking the time...

here's an example :
http://creationsjesabel.com/site3/index.php/deco/coussins/coussins-carres/coussin-carre-vert-marguerite-papillon-detail

I can see all the phrases in the backend custom fields "default" area...and as you can see in frontend I see only half of the phrases...

maybe this "custom field" is not the solution for me...or is it ?

thanks  :-\
Sandra
Title: Re: Custom field : Long drop down list for a product...please help
Post by: Maxim Pishnyak on November 24, 2013, 16:33:55 PM
Not fair for my country - "Your location (UA) has been blacklisted."
Title: Re: Custom field : Long drop down list for a product...please help
Post by: serazoo on November 24, 2013, 23:20:05 PM
Sorry about that  ;)

with so many joomla hackers...I've decided sometime ago to block everyone except Canada, my country, and the USA for Googlebot.

I've unblocked Australia...is that yours ?

thanks Max.
Sandra
Title: Re: Custom field : Long drop down list for a product...please help
Post by: mmx on November 25, 2013, 00:53:48 AM
I have a similar problem..

I thing you need to change 2 things:

1) Change the length of the database field "custom_value" which should be in the table "virtuemart_customs"

2) I assume that virtuemart developers try to follow ORM techniques (not sure if I use the right terms) so probably there is somewhere a class file which describes the virtuemart_customs table and in this file the lehgth of the field custom_value is hard-coded.

If you find those files please let me know. Maybe is not the solution for your problem but might be for mine!

Thanks
Title: Re: Custom field : Long drop down list for a product...please help
Post by: serazoo on November 25, 2013, 04:53:44 AM
Length value is hard coded..in ADMIN helper/html.php  changed mine from 255 to 1000...

There must be an easier way...a plugin or something...that could let us use a cart variant with a long (large) drop downs lists...not only for T-shirt sizes :)

I'm willing to buy it...does it exist ?

thanks
Title: Re: Custom field : Long drop down list for a product...please help
Post by: jenkinhill on November 25, 2013, 11:29:25 AM
Quote from: serazoo on November 24, 2013, 23:20:05 PM

I've unblocked Australia...is that yours ?


UA = Ukraine !!
Title: Re: Custom field : Long drop down list for a product...please help
Post by: serazoo on November 25, 2013, 14:38:55 PM
Thank you jenkinhill
Ukraine unblocked  :-*
Title: Re: Custom field : Long drop down list for a product...please help
Post by: Maxim Pishnyak on November 28, 2013, 13:36:25 PM
Oh, come on, unblock my country. Ple-e-ese!
Title: Re: Custom field : Long drop down list for a product...please help
Post by: balai on November 28, 2013, 13:51:54 PM
The answer is simple.
You cannot enter more than 255 characters as value in the cart variant custom field

If you want to use a commercial plugin you can check this one
http://breakdesigns.net/extensions/customfields-for-all

It has no limitations at all