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

#   Post Text transform for customer input at checkout

##

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

Less More

- Posts: 432
- Thank you received: 22
-

7 years 9 months ago [\#303419](#303419) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Post Text transform for customer input at checkout](/forum/27-checkout/896831-post-text-transform-for-customer-input-at-checkout#303419 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi I need to get all customer input at checkout in uppercase. So if customer fill in with lower or uppercase, data is allways uppercase saved.  I know for regular expression field option, but as I can understand, if customer write lowercase, then warning is shown and that is not what we need. So auto transform input.")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2

Hi
I need to get all customer input at checkout in uppercase. So if customer fill in with lower or uppercase, data is allways uppercase saved.

I know for regular expression field option, but as I can understand, if customer write lowercase, then warning is shown and that is not what we need.
So auto transform input.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjgzMS1wb3N0LXRleHQtdHJhbnNmb3JtLWZvci1jdXN0b21lci1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 9 months ago [\#303422](#303422) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Post Text transform for customer input at checkout](/forum/27-checkout/896831-post-text-transform-for-customer-input-at-checkout#303422 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi I need to get all customer input at checkout in uppercase. So if customer fill in with lower or uppercase, data is allways uppercase saved.  I know for regular expression field option, but as I can understand, if customer write lowercase, then warning is shown and that is not what we need. So auto transform input.")*

Hi,

There is no option for that. You would have to write a small plugin to change the case when the data is being saved thanks to the triggers available:
[ www.hikashop.com/support/documentation/6...r-documentation.html](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)

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

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

Less More

- Posts: 432
- Thank you received: 22
-

7 years 9 months ago [\#303469](#303469) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Post Text transform for customer input at checkout](/forum/27-checkout/896831-post-text-transform-for-customer-input-at-checkout#303469 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi I need to get all customer input at checkout in uppercase. So if customer fill in with lower or uppercase, data is allways uppercase saved.  I know for regular expression field option, but as I can understand, if customer write lowercase, then warning is shown and that is not what we need. So auto transform input.")*

What about some custom overide for fields like
&lt;input oninput="this.value = this.value.toUpperCase()" /&gt;
will this work?

Im not so good in php to write plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjgzMS1wb3N0LXRleHQtdHJhbnNmb3JtLWZvci1jdXN0b21lci1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 9 months ago [\#303478](#303478) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Post Text transform for customer input at checkout](/forum/27-checkout/896831-post-text-transform-for-customer-input-at-checkout#303478 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi I need to get all customer input at checkout in uppercase. So if customer fill in with lower or uppercase, data is allways uppercase saved.  I know for regular expression field option, but as I can understand, if customer write lowercase, then warning is shown and that is not what we need. So auto transform input.")*

Hi,

Creating a Joomla plugin is not complex. You can find tutorials on that:
[ docs.joomla.org/J3.x:Creating\_a\_Plugin\_for\_Joomla](https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla)
It doesn't require particular coding skills. Just create the XML and PHP files are indicated in the tutorial and replace the different pieces based on your situation.
Once you know how to create a joomla plugin, you just have to replace the &lt;EventName&gt; of the plugin by the trigger name form our developer documentation for the data element you want to change.
For example, if it's a custom order field, it's the onBeforeOrderCreate trigger you want to implement.
Then, in the code of the function, it's similarily one line of code you need to use:
$order-&gt;XXX = strtoupper($order-&gt;XXX);
where XXX is the column name of your custom order field and strtoupper is the name of the toUpperCase function in PHP (which you could easily find out if you search a bit online).

Now, you could also do it with a view override to strreplace the oninput attribute in the input field. However, it will require more complex coding than making the plugin as described above.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjgzMS1wb3N0LXRleHQtdHJhbnNmb3JtLWZvci1jdXN0b21lci1pbnB1dC1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) 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.053 seconds

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