gibron Posted September 1, 2014 Share Posted September 1, 2014 Dobrý den, nastavil jsem celý e-shop tak aby byly umožněny pouze guest registrations, protože nechci mít na serveru registrace. Chtěl bych, aby při objednávce nebylo nutné zadání adresy, města a PSČ. Nevíte jak zrušit povinnost zadání těchto polí? Díky za odpověď. www.laurenlorenzo.cz Link to comment Share on other sites More sharing options...
Kimi Posted September 5, 2014 Share Posted September 5, 2014 Dobry den, skuste v subore /classes/Address.php zmazte pri public static $definition vsetky required => true a v subore zakomentovat tieto riadky: /* Check zip code format */ if ($country->zip_code_format && !$country->checkZipCode($postcode)) $this->errors[] = sprintf(Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'), str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format)))); elseif(empty($postcode) && $country->need_zip_code) $this->errors[] = Tools::displayError('A Zip / Postal code is required.'); elseif ($postcode && !Validate::isPostCode($postcode)) $this->errors[] = Tools::displayError('The Zip / Postal code is invalid.'); -> /* Check zip code format */ /* if ($country->zip_code_format && !$country->checkZipCode($postcode)) $this->errors[] = sprintf(Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'), str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format)))); elseif(empty($postcode) && $country->need_zip_code) $this->errors[] = Tools::displayError('A Zip / Postal code is required.'); elseif ($postcode && !Validate::isPostCode($postcode)) $this->errors[] = Tools::displayError('The Zip / Postal code is invalid.'); */ 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