jjjoseph Posted June 9, 2011 Share Posted June 9, 2011 Can someone tell me what to change for adding more characters in the carrier transit time? I have more places to change but this will give me the way to do it. Link to comment Share on other sites More sharing options...
shokinro Posted June 9, 2011 Share Posted June 9, 2011 1. use database tool such as PhpMyAdmin to change following data field length to biger one, e.g, 1024 table: ps_carrier_lang field: delay2. change the number to new number you change in above 1. file /classes/Carrier.php protected $fieldsSizeLang = array('delay' => 128); you are all set. Link to comment Share on other sites More sharing options...
jjjoseph Posted June 9, 2011 Author Share Posted June 9, 2011 It's going to be a breeze Thank You Link to comment Share on other sites More sharing options...
ALMAJ Posted July 9, 2013 Share Posted July 9, 2013 (edited) 1. use database tool such as PhpMyAdmin to change following data field length to biger one, e.g, 1024 table: ps_carrier_lang field: delay 2. change the number to new number you change in above 1. file /classes/Carrier.php protected $fieldsSizeLang = array('delay' => 128); you are all set. Hi tanks or this tip, but this method is not working anymore with prestashop 1.5.4.1 can you help, please? Best regards Edited July 9, 2013 by majority (see edit history) Link to comment Share on other sites More sharing options...
FelipeGallo Posted July 26, 2013 Share Posted July 26, 2013 (edited) In 1.5.4 i change the delay field to text in ps_carrier_lang DB.. Change the function fieldform in adminCarrierController to: 'type' => 'textarea', 'label' => $this->l('Transit time:'), 'name' => 'delay', 'lang' => true, 'required' => true, 'cols' => 50, 'rows' => 15, 'desc' => $this->l('Estimated delivery time will be displayed during checkout.') and change the Carrier.php in /classes: /* Lang fields */ 'delay' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 1600), But the information still in 128 chars.. Sorry my English guys Edited July 26, 2013 by FelipeGallo (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts