Search the Community
Showing results for tags 'uppercase'.
-
Ciao a tutti Ragazzi ho un piccolo problema da risolvere, vorrei capire come modificare il codice perché nella registrazione mi venga automaticamente registrato nel database il codice fiscale con lettere maiuscole. Ho installato sul mio server prestashop 1.7.x Grazie ragazzi del vostro supporto.
- 1 reply
-
- lettere maiuscole
- codice fiscale
-
(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)
-
Hi, In Prestashop 1.5.6, in the database, all the customer address fields are saved in lower case (apart from the first letter). Unfortunately, this is not in conformity with the Postal standards in France where all the address fields are to be printed in uppercase. In Prestashop 1.4, several people publish the way to make the address registration in uppercase : In "classes" find "Customer.php" and "Address.php" Replace the line : $fields['lastname'] = pSQL($this->lastname); by : $fields['lastname'] = pSQL(Tools::strtoupper($this->lastname)); That method worked well. For prestahsop 1.5.6, would you know how to have the various fields of the customer address in uppercase in the database ? Thank you in advance for any reply. Patrick
-
To replace uppercase in the Order reference and replace with numbers (id_order as in older versions) I made this simple code override in /override/classes/order/Order.php: <?php class Order extends OrderCore { public function getUniqReference() { $query = new DbQuery(); $query->select('MIN(id_order) as min, MAX(id_order) as max'); $query->from('orders'); $query->where('id_cart = '.(int)$this->id_cart); $query->orderBy('id_order'); $order = Db::getInstance()->getRow($query); /*if ($order['min'] == $order['max']) return $this->reference; else return $this->reference.'#'.($this->id + 1 - $order['min']);*/ return sprintf('%06d', $this->id); } public static function getUniqReferenceOf($id_order) { $order = new Order($id_order); return $order->getUniqReference(); } } To return to the original letters designation, you must remove comment from 'if' and add comment to //return sprintf('%06d', $this->id); .
- 53 replies
-
- 2
-
-
- order reference
- uppercase
- (and 4 more)
-
Hello I have a 1.4.9 prestashop store with over 5000 products all with the name in uppercase. The problem is that the products have all uppercase, all meta-title also are capitalized And what I really want is that the Meta-title them in lower case or only the first letter capitalized As an example I have now in the Meta-Title: THIS IS THE PRODUCT RED I want to have in the Meta-Title: This Is The Product Red I think I have to modify the file tools.php but do not really know I have to do. Any ideas or help? Thanks
- 1 reply
-
- SEO
- Meta-title
- (and 4 more)