Author Topic: Custom field : Long drop down list for a product...please help  (Read 1702 times)

serazoo

  • Beginner
  • *
  • Posts: 8
Custom field : Long drop down list for a product...please help
« 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

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Custom field : Long drop down list for a product...please help
« Reply #1 on: November 23, 2013, 13:17:49 pm »
URL with test product?

serazoo

  • Beginner
  • *
  • Posts: 8
Re: Custom field : Long drop down list for a product...please help
« Reply #2 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

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Custom field : Long drop down list for a product...please help
« Reply #3 on: November 24, 2013, 16:33:55 pm »
Not fair for my country - "Your location (UA) has been blacklisted."

serazoo

  • Beginner
  • *
  • Posts: 8
Re: Custom field : Long drop down list for a product...please help
« Reply #4 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

mmx

  • Beginner
  • *
  • Posts: 6
Re: Custom field : Long drop down list for a product...please help
« Reply #5 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

serazoo

  • Beginner
  • *
  • Posts: 8
Re: Custom field : Long drop down list for a product...please help
« Reply #6 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27457
  • Always on vacation
    • Jenkin Hill Internet
Re: Custom field : Long drop down list for a product...please help
« Reply #7 on: November 25, 2013, 11:29:25 am »

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


UA = Ukraine !!
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

serazoo

  • Beginner
  • *
  • Posts: 8
Re: Custom field : Long drop down list for a product...please help
« Reply #8 on: November 25, 2013, 14:38:55 pm »
Thank you jenkinhill
Ukraine unblocked  :-*

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Custom field : Long drop down list for a product...please help
« Reply #9 on: November 28, 2013, 13:36:25 pm »
Oh, come on, unblock my country. Ple-e-ese!

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1369
Re: Custom field : Long drop down list for a product...please help
« Reply #10 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