[Skip to main content](#vessel-content)

#   Text transform for address input at checkout

##

- **[fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")**
- [![fernando.alh's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/29824-fernando-alh "View fernando.alh's Profile") Topic Author
- [ Offline](/forum/user/29824-fernando-alh)

Less More

- Posts: 32
- Thank you received: 0
-
-

11 years 3 weeks ago [\#217314](#217314) by [fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")  *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#217314 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")* was created by *[fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m

Hi there! I'm getting crazy having three days trying to figure the following:

In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.

just I need to add Code:

style="text-transform:capitalize&#124;lowercase&#124;uppercase;"

to each field.
for example: Code:

&lt;tr class="hikashop_billing_address_address_lastname" id="hikashop_billing_address_address_lastname" style"text-transform:capitalize;"&gt;

What exact line should I edit in the display editor or php file to do that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

11 years 3 weeks ago [\#217316](#217316) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#217316 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Hi,

You should add such CSS:
\#hikashop_billing_address_address_lastname{
text-transform:capitalize !important;
}

to the CSS file of your template, or to the frontend CSS of HikaShop:
[ www.hikashop.com/support/support/documen...ize-the-display.html](https://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

The following user(s) said Thank You: [fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")**
- [![fernando.alh's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/29824-fernando-alh "View fernando.alh's Profile") Topic Author
- [ Offline](/forum/user/29824-fernando-alh)

Less More

- Posts: 32
- Thank you received: 0
-
-

11 years 3 weeks ago [\#217442](#217442) by [fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")  Replied by *[fernando.alh](/forum/user/29824-fernando-alh "View fernando.alh's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#217442 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Hi there! So simple solution! One more time: THANK YOU! ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[awaddon](/forum/user/40160-awaddon "View awaddon's Profile")**
- [![awaddon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40160-awaddon "View awaddon's Profile")
- [ Offline](/forum/user/40160-awaddon)

Less More

- Posts: 2
- Thank you received: 0
-
-

10 years 10 months ago -  10 years 10 months ago [\#225307](#225307) by [awaddon](/forum/user/40160-awaddon "View awaddon's Profile")  Replied by *[awaddon](/forum/user/40160-awaddon "View awaddon's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#225307 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Hi

I am trying to do the same for the postcode field.

I have some shipping methods setup with prefixes such as "SO" (uppercase) but if the customer types "So" or "so" they do not work.

The method mentioned above with CSS does not save the data as uppercase it only displays on the page as uppercase the data saved to the address remains in lowercase, is there a way to force uppercase and save to the address in uppercase?

can I add a javascript validation to the form?, or php strtoupper to convert to uppdercase on save? if so where would I do it?

I don't want to create several versions of each shipping method just to cover the variations of what the customer might type.

Thanks

Andy

Last edit: 10 years 10 months ago by [awaddon](/forum/user/40160-awaddon "View awaddon's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

10 years 10 months ago [\#225309](#225309) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#225309 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Hi,

You can use the "regex check" setting of your custom post code field. You can find it when you edit your field via the menu Display&gt;Custom fields.
There, you can enter for example: Code:

^[0-9A-Z]+$

and that will only allow numbers and uppercase letters.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[awaddon](/forum/user/40160-awaddon "View awaddon's Profile")**
- [![awaddon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40160-awaddon "View awaddon's Profile")
- [ Offline](/forum/user/40160-awaddon)

Less More

- Posts: 2
- Thank you received: 0
-
-

10 years 10 months ago [\#225464](#225464) by [awaddon](/forum/user/40160-awaddon "View awaddon's Profile")  Replied by *[awaddon](/forum/user/40160-awaddon "View awaddon's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#225464 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Thanks Nicolas

But I don't see that setting anywhere on the page (screenshot)

Where do I need to enter it?

Thanks

Andy

[ ![Screen&#95;Shot&#95;2016-01-03&#95;at&#95;11&#95;08&#95;47.png](/forum/attachment/28697) ](/forum/attachment/28697 "...t&#95;11&#95;08&#95;47.png")

- [ ![Screen&#95;Shot&#95;2016-01-03&#95;at&#95;11&#95;08&#95;47.png](/forum/attachment/28697) ](/forum/attachment/28697 "...t&#95;11&#95;08&#95;47.png") [ ](/forum/attachment/28697?download=1 "...t&#95;11&#95;08&#95;47.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

10 years 10 months ago [\#225513](#225513) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Text transform for address input at checkout](/forum/27-checkout/879861-text-transform-for-address-input-at-checkout#225513 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Google Chrome 45.0.2454.101 m  Hi there! I'm getting crazy having three days trying to figure the following:  In the checkout process, adding a new billing address, in the fields, I need to force some fields to lowercase, uppercase and capitalize.  just I need to add to each field. for example:  What exact line should I edit in the display editor or php file to do that?")*

Hi,

Then it means that you have an old version of HikaShop.
Update and you should see that field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTg2MS10ZXh0LXRyYW5zZm9ybS1mb3ItYWRkcmVzcy1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
