News:

Looking for documentation? Take a look on our wiki

Main Menu

default box isnt big enough for all my attribute values?

Started by ultimamedia, May 14, 2014, 13:05:51 PM

Previous topic - Next topic

ultimamedia

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]

GJC Web Design

it accepts 255 char - do you mean just the display width or do you need more than 255?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ultimamedia

need more than 255 char or a way that i can maually type in each individual box when setting the attributes up in product!

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation