JAKCRABBIT Posted October 29, 2014 Share Posted October 29, 2014 (edited) Ve složce classes zakomentujeme následující řádky ve zmíněných souborech, řádky se můžou lišit dle verze, toto je na 1.6.0.9. Address.php řádek 129: //'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), Country.php řádek 49: //public $need_identification_number;řádek 80: //'need_identification_number' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true), Validate.php řádky 872-875 //public static function isDniLite($dni) //{ // return empty($dni) || (bool)preg_match('/^[0-9A-Za-z-.]{1,16}$/U', $dni); //} Edited October 29, 2014 by JAKCRABBIT (see edit history) Link to comment Share on other sites More sharing options...
Kimi Posted October 29, 2014 Share Posted October 29, 2014 bude sa potom IC vobec dat vlozit? nestacilo by len dat 'validate' => 'isString' ? nie je Country::$need_identification_number defaultne false? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted October 29, 2014 Author Share Posted October 29, 2014 Aj, uááá, jak to že nejde to ič uložit omg... string nějak nepomohl. Link to comment Share on other sites More sharing options...
martinl Posted November 21, 2014 Share Posted November 21, 2014 Provedl jsem úpravu .tpl souborů, viz zde: http://www.prestashop.com/forums/topic/287368-ič-a-dič-v-one-page-checkout/ a pak jsem v administraci zrušil povinné IČ (lokalizace/země). Ve formuláři objednávky IČ zůstalo, ale už se neověřuje. Link to comment Share on other sites More sharing options...
martinl Posted November 21, 2014 Share Posted November 21, 2014 1.5.6.2 sorry 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