magisterson Posted September 21, 2013 Share Posted September 21, 2013 PS 1.5.5.1 Jak mogę usunąć kilka pól wymaganych z formularza zamawiania towaru jako gość (opcja bez rejestracji)? Podejrzewam że trzeba będzie edytować plik PHP z funkcja sprawdzającą oraz plik: order-opc-new-account.tpl Nie chodzi mi tylko o usunięcie opcji "WYMAGANE POLE" Tylko również o usunięcie wybranych inputów z formularza. W zamowieniu mogą przychodzić te pola jako puste wartości. Proszę o nakierowanie i pomoc w tej sprawie. Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 zmienić trzeba definicję obiektu Adres, classes/Address.php jest tam kod: public static $definition = array( 'table' => 'address', 'primary' => 'id_address', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), ), ); pola oznaczone 'required'=>true są polami wymaganymi, wystarczy to usunąć i przestaną takie być Link to comment Share on other sites More sharing options...
dees043 Posted October 1, 2013 Share Posted October 1, 2013 gdzie znajde ten plik ? Nie moge go zlokalizowac ... Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 ten plik zlokalizowany jest w katalogu /classes/ dokładna ścieka: classes/Address.php Link to comment Share on other sites More sharing options...
dees043 Posted October 1, 2013 Share Posted October 1, 2013 Klient nie moze zarejestrować sie bez podania numeru telefonu . Nie widać w ogole pola z telefonem. Czy jesli zrobie to co jest opisane w temacie to nie bede miał juz problemu z tym telefonem ?? Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 akurat pole związane z telefonem jest do ustawienia w back office, ustawienia > klienci Link to comment Share on other sites More sharing options...
dees043 Posted October 1, 2013 Share Posted October 1, 2013 Dziękuje Ci kolego. ! Nie wpadłem na to 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