Author Topic: default box isnt big enough for all my attribute values?  (Read 629 times)

ultimamedia

  • Jr. Member
  • **
  • Posts: 197
default box isnt big enough for all my attribute values?
« 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]

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: default box isnt big enough for all my attribute values?
« Reply #1 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ultimamedia

  • Jr. Member
  • **
  • Posts: 197
Re: default box isnt big enough for all my attribute values?
« Reply #2 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!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: default box isnt big enough for all my attribute values?
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation