VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: ultimamedia on May 14, 2014, 13:05:51 PM

Title: default box isnt big enough for all my attribute values?
Post by: ultimamedia on May 14, 2014, 13:05:51 PM
Hi All, i have loads of values i need to put into a cart variant, however, there seems to be limits to the box size (see attachments, does anyone know of a way around this?
What would be perfect is if there was a way to write attributes into products manually (like in 1.5!)

Chris

[attachment cleanup by admin]
Title: Re: default box isnt big enough for all my attribute values?
Post by: GJC Web Design on May 14, 2014, 13:44:56 PM
it accepts 255 char - do you mean just the display width or do you need more than 255?
Title: Re: default box isnt big enough for all my attribute values?
Post by: ultimamedia on May 14, 2014, 13:52:24 PM
need more than 255 char or a way that i can maually type in each individual box when setting the attributes up in product!
Title: Re: default box isnt big enough for all my attribute values?
Post by: GJC Web Design on May 14, 2014, 14:16:25 PM
you will need to change the db table as that column is set char(255)  then find the form field and change that..

then hope it works

the form fields are rendered by the vm admin ->helpers-> html.php

public static function input($name,$value,$class='class="inputbox"',$readonly='',$size='37',$maxlength='255',$more=''){
      return '<input type="text" '.$readonly.' '.$class.' id="'.$name.'" name="'.$name.'" size="'.$size.'" maxlength="'.$maxlength.'" value="'.htmlspecialchars($value).'" />'.$more;
   }

if $maxlength isn't passed it defaults to 255 - haven't found the form ...

will all get overwritten next update though -- maybe you need to find a better solution