Jessie K. Jepsen Posted November 5, 2012 Share Posted November 5, 2012 Prestashop 1.5.1 I get lots of customers who call and fax me in orders and I don't have emails for them. I would like to make it so email and passwords are not required on the back office "Optional" Or another way around it.. Can someone please point me to a solution? Thank you. Link to comment Share on other sites More sharing options...
Jessie K. Jepsen Posted November 7, 2012 Author Share Posted November 7, 2012 *** BUMP *** Link to comment Share on other sites More sharing options...
MEG Venture Posted November 7, 2012 Share Posted November 7, 2012 Hi Jessie, Do you want those two fields not mandatory? Link to comment Share on other sites More sharing options...
mowax Posted August 8, 2013 Share Posted August 8, 2013 Hi, I am also looking for a solution to this, is it possible to make those two fields not mandatory when entering orders in the back office? I'm using prestashop 1.5.4.1. Thanks! Link to comment Share on other sites More sharing options...
sharif854 Posted August 8, 2013 Share Posted August 8, 2013 Hi By default you can not to do this you must override AuthController and CustomerCore and Auth.tpl and order.tpl if you know php and smarty it's smiple if you don't know programming you must tell the prestashop developers Link to comment Share on other sites More sharing options...
mowax Posted August 9, 2013 Share Posted August 9, 2013 Can anyone provide instructions for this? Link to comment Share on other sites More sharing options...
MEG Venture Posted August 10, 2013 Share Posted August 10, 2013 Hi I can suggest a workaround to manage this. With this workaround, email and password field will come pre-filled, so you won't need to think about it Note that these instructions are for Prestashop 1.5.4.1 Open controllers>admin>AdminCustomersController.php Find line 302 'type' => 'password', change it to 'type' => 'text', then find line 386-393 if (Tools::isSubmit('addcustomer') && Tools::isSubmit('submitFormAjax')) { $visitor_group = Configuration::get('PS_UNIDENTIFIED_GROUP'); $guest_group = Configuration::get('PS_GUEST_GROUP'); foreach ($groups as $key => $g) if (in_array($g['id_group'], array($visitor_group, $guest_group))) unset($groups[$key]); } And change it to if (Tools::isSubmit('addcustomer') && Tools::isSubmit('submitFormAjax')) { $visitor_group = Configuration::get('PS_UNIDENTIFIED_GROUP'); $guest_group = Configuration::get('PS_GUEST_GROUP'); foreach ($groups as $key => $g) if (in_array($g['id_group'], array($visitor_group, $guest_group))) unset($groups[$key]); if (!$this->object->email){ $this->object->email = rand(1, 100000).'@megventure.com'; $this->object->passwd = 'megventure'; } } Instead of 'megventure' you can write anything. Hope that helps. Regards. Link to comment Share on other sites More sharing options...
mowax Posted August 19, 2013 Share Posted August 19, 2013 Hi MEG venture, This works right nice, thanks a lot! Link to comment Share on other sites More sharing options...
MEG Venture Posted August 19, 2013 Share Posted August 19, 2013 Hi MEG venture, This works right nice, thanks a lot! You're welcome Link to comment Share on other sites More sharing options...
markjl Posted December 12, 2013 Share Posted December 12, 2013 (edited) Hello I dont get the fields pre-filled when I create a new customer but I have upgraded to 1.5.6.1 Any thoughts? Thanks Edited December 12, 2013 by markjl (see edit history) Link to comment Share on other sites More sharing options...
markjl Posted December 12, 2013 Share Posted December 12, 2013 (edited) Ignore that It does work after a logout / in. Thanks v much How could I do the same thing when adding a customer address? Many thanks in advance Edited December 12, 2013 by markjl (see edit history) Link to comment Share on other sites More sharing options...
markjl Posted December 13, 2013 Share Posted December 13, 2013 In fact I noticed this works from the add customer button in a new order. How to get it to work from the Add New Customer button or for adding a prefilled customer address? Many thanks Link to comment Share on other sites More sharing options...
markjl Posted March 20, 2014 Share Posted March 20, 2014 Hello Is this solution still applicable to v1.6.0.5? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts