Emil Eriksen Posted November 8, 2013 Share Posted November 8, 2013 (edited) Hi, I'm trying to change the "Transit time"-textbox in the carrier creation wizard to a textarea using overrides. The files I'm working with are "AdminCarrierWizardController.php" and "Carrier.php". So far I've managed to change the textbox to a textarea with the visual editor but the issue is that my input isn't saved. If i change the text from "x" to "xx" nothing happens and transit time still shows as "x". I've made the following changes to AdminCarrierWizardController.php: From array( 'type' => 'text', 'label' => $this->l('Transit time:'), 'name' => 'delay', 'lang' => true, 'required' => true, 'size' => 41, 'maxlength' => 128, 'desc' => $this->l('Estimated delivery time will be displayed during checkout.') ), To array( 'type' => 'textarea', 'label' => $this->l('Transit time:'), 'name' => 'delay', 'autoload_rte' => true, 'lang' => true, 'rows' => 5, 'cols' => 40, 'required' => true, 'size' => 41, 'desc' => $this->l('Estimated delivery time will be displayed during checkout.') ), I've made the following changes to Carrier.php:From /* Lang fields */ 'delay' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128), To /* Lang fields */ 'delay' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true), Edited November 10, 2013 by Emil Eriksen (see edit history) Link to comment Share on other sites More sharing options...
Emil Eriksen Posted November 10, 2013 Author Share Posted November 10, 2013 No one? I would imagine this would be easy to solve for a more experienced developer. Link to comment Share on other sites More sharing options...
vekia Posted November 10, 2013 Share Posted November 10, 2013 changed field from text to textarea array( 'type' => 'textarea', 'label' => $this->l('Transit time:'), 'name' => 'delay', 'lang' => true, 'required' => true, 'size' => 41, 'maxlength' => 128, 'desc' => $this->l('Estimated delivery time will be displayed during checkout.') ), effect: Link to comment Share on other sites More sharing options...
Emil Eriksen Posted November 10, 2013 Author Share Posted November 10, 2013 Thank you but this is what I've done already After changing it to a textarea saving doesn't work - no changes take effect when I try to edit the transit time textarea. I've cut the code snippets in the OP to better show the changes I've made. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now