News:

Support the VirtueMart project and become a member

Main Menu

Custom field : Long drop down list for a product...please help

Started by serazoo, November 22, 2013, 20:53:55 PM

Previous topic - Next topic

serazoo

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

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

serazoo

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

Not fair for my country - "Your location (UA) has been blacklisted."
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

serazoo

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

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

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

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

serazoo


Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

balai

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