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

#   Change Display of Phone Number

##

- **[BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")**
- [![BounceHouseOwner's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32544.jpg)](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile") Topic Author
- [ Offline](/forum/user/32544-bouncehouseowner)

Less More

- Posts: 90
- Thank you received: 2
-
-

10 years 4 months ago [\#246365](#246365) by [BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")  *[Change Display of Phone Number](/forum/33-customers/885750-change-display-of-phone-number#246365 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.3.1  I would like my customers to enter their telephone number without spaces or dashes when they register/check out such as 5551114444 but show as 555-111-4444 on correspondence and such. How do I do this?")* was created by *[BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.3.1

I would like my customers to enter their telephone number without spaces or dashes when they register/check out such as 5551114444 but show as 555-111-4444 on correspondence and such. How do I do this?

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

10 years 4 months ago [\#246368](#246368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change Display of Phone Number](/forum/33-customers/885750-change-display-of-phone-number#246368 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.3.1  I would like my customers to enter their telephone number without spaces or dashes when they register/check out such as 5551114444 but show as 555-111-4444 on correspondence and such. How do I do this?")*

Hi,

To limit the format they can use for that field, you can edit the address_telephone custom field via the menu Display&gt;Custom fields and use the "regex validation check" option.

To change the way the value entered is displayed on the address area, you'll have to edit the file "address_template" for both your frontend and backend template via the menu Display&gt;Views and add custom PHP code.

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

- **[BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")**
- [![BounceHouseOwner's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32544.jpg)](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile") Topic Author
- [ Offline](/forum/user/32544-bouncehouseowner)

Less More

- Posts: 90
- Thank you received: 2
-
-

10 years 4 months ago [\#246433](#246433) by [BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")  Replied by *[BounceHouseOwner](/forum/user/32544-bouncehouseowner "View BounceHouseOwner's Profile")* on topic *[Change Display of Phone Number](/forum/33-customers/885750-change-display-of-phone-number#246433 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.3.1  I would like my customers to enter their telephone number without spaces or dashes when they register/check out such as 5551114444 but show as 555-111-4444 on correspondence and such. How do I do this?")*

Okay. Thanks. I'm not familiar at all with PHP so I will leave it as is. : )

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

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