Search the Community
Showing results for tags 'capitalize'.
-
Cześć, nie mogę poradzić sobie z problemem zamiany pól formularza adresowego na wielkie litery, ale tylko przy dodawaniu nowego adresu. Przy jego aktualizacji kod działa poprawnie. Dodatkowo, ten sam kod na środowisku DEV działa poprawnie, zarówno dla dodania nowego adresu jak i jego aktualizacji. Cashe czyściłem z poziomu zaplecza -> wydajność -> wyczyśc cache, jak i usuwając postała zawartość w katalogu var. Modyfikuje to przez override/classes/Address.php, update działa, ale add już nie (kolejność funkcji w pliku nie robi różnicy) : class Address extends AddressCore { public function update($null_values = false) { // Empty related caches if (isset(self::$_idCountries[$this->id])) { unset(self::$_idCountries[$this->id]); } if (isset(self::$_idZones[$this->id])) { unset(self::$_idZones[$this->id]); } // Capitalize the first name $this->firstname = ucfirst($this->firstname); // Capitalize the last name $this->lastname = ucfirst($this->lastname); // Capitalize the address fields $this->address1 = ucfirst($this->address1); $this->address2 = ucfirst($this->address2); $this->city = ucfirst($this->city); if (Validate::isUnsignedId($this->id_customer)) { Customer::resetAddressCache($this->id_customer, $this->id); } return parent::update($null_values); } public function add($autodate = true, $null_values = false) { if (!parent::add($autodate, $null_values)) { return false; } // Capitalize the first name $this->firstname = ucfirst($this->firstname); // Capitalize the last name $this->lastname = ucfirst($this->lastname); // Capitalize the address fields $this->address1 = ucfirst($this->address1); $this->address2 = ucfirst($this->address2); $this->city = ucfirst($this->city); if (Validate::isUnsignedId($this->id_customer)) { Customer::resetAddressCache($this->id_customer, $this->id); } return true; } } Help!
-
- zamiana na wielkie litery
- capitalize
-
(and 1 more)
Tagged with:
-
Hi All, Is there a way to capitalize and submit the first letters of the name and address input fields on registration? for example; john doe smith main street 123 1234 aa town John Doe Smith Main Street 123 1234 AA Town I tried css {text-transform:capitalize;}, unfortunately this only change the user values entered, it doesn't submit and store the capitalized text into the database. Thanks
- 7 replies
-
- capitalize
- uppercase
- (and 5 more)
-
Customers registers. He states: First name: Maria Luisa Last name: Ciccone Presta registers the customer as: Maria luisa Ciccone ('L' becomes 'l') The welcome message and all the mails will use also Maria luisa Not nice to the customer. How to correct this? Thanks..