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

#   State &amp; County Fields display with incorrectly

##

- **[soliver](/forum/user/35048-soliver "View soliver's Profile")**
- [![soliver's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35048.png)](/forum/user/35048-soliver "View soliver's Profile") Topic Author
- [ Offline](/forum/user/35048-soliver)

Less More

- Posts: 15
- Thank you received: 0
-
-

6 years 9 months ago [\#314534](#314534) by [soliver](/forum/user/35048-soliver "View soliver's Profile")  *[State &amp; County Fields display with incorrectly](/forum/35-orders-management/898965-state-county-fields-display-with-incorrectly#314534 "-- url of the page with the problem -- :   exaxol.com  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.1.4 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : safari 13.0.4 -- Error-message(debug-mod must be tuned on) -- : No Error Message  All of a sudden, the state field displays as &quot;state&#95;Florida&#95;4270&quot; and the Country field displays as &quot;country&#95;United&#95;States&#95;of&#95;America&#95;223. This is new as it has always displayed correctly until a couple of days a go.. Any suggestions on how to correct? The address&#95;template.php is set to the following: This is the ways it has always been so no changes have been made to this. I appreciate any help.  I have an attachment so you can see what i am talking about.  Scott  {address&#95;company} {address&#95;title} {address&#95;firstname} {address&#95;lastname} {address&#95;street} {address&#95;city} {address&#95;state} {address&#95;post&#95;code} {address&#95;country} params-&gt;get('address'); echo JText::sprintf('TELEPHONE&#95;IN&#95;ADDRESS',preg&#95;replace(&quot;/^1?(&#92;d{3})(&#92;d{3})(&#92;d{4})$/&quot;, &quot;$1-$2-$3&quot;, preg&#95;replace(&quot;/&#91;^&#92;d&#93;/&quot;, &quot;&quot;, $address-&gt;address&#95;telephone))); ?&gt;")* was created by *[soliver](/forum/user/35048-soliver "View soliver's Profile")*

-- url of the page with the problem -- : [ exaxol.com](https://exaxol.com)
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.1.4
-- PHP version -- : 7.2.26
-- Browser(s) name and version -- : safari 13.0.4
-- Error-message(debug-mod must be tuned on) -- : No Error Message

All of a sudden, the state field displays as "state_Florida_4270" and the Country field displays as "country_United_States_of_America_223. This is new as it has always displayed correctly until a couple of days a go.. Any suggestions on how to correct? The address_template.php is set to the following: This is the ways it has always been so no changes have been made to this. I appreciate any help.

I have an attachment so you can see what i am talking about.  [ ![HikaShop.png](/forum/attachment/48473) ](/forum/attachment/48473 "HikaShop.png")

Scott

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 3.4.0
* @author hikashop.com
* @copyright (C) 2010-2018 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city} {address_state} {address_post_code}
{address_country}
&lt;?php
$address = $this-&gt;params-&gt;get('address');
echo JText::sprintf('TELEPHONE_IN_ADDRESS',preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", preg_replace("/[^\d]/", "", $address-&gt;address_telephone))); ?&gt;

- [ ![HikaShop.png](/forum/attachment/48473) ](/forum/attachment/48473 "HikaShop.png") [ ](/forum/attachment/48473?download=1 "HikaShop.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5ODk2NS1zdGF0ZS1jb3VudHktZmllbGRzLWRpc3BsYXktd2l0aC1pbmNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

6 years 9 months ago [\#314535](#314535) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[State &amp; County Fields display with incorrectly](/forum/35-orders-management/898965-state-county-fields-display-with-incorrectly#314535 "-- url of the page with the problem -- :   exaxol.com  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.1.4 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : safari 13.0.4 -- Error-message(debug-mod must be tuned on) -- : No Error Message  All of a sudden, the state field displays as &quot;state&#95;Florida&#95;4270&quot; and the Country field displays as &quot;country&#95;United&#95;States&#95;of&#95;America&#95;223. This is new as it has always displayed correctly until a couple of days a go.. Any suggestions on how to correct? The address&#95;template.php is set to the following: This is the ways it has always been so no changes have been made to this. I appreciate any help.  I have an attachment so you can see what i am talking about.  Scott  {address&#95;company} {address&#95;title} {address&#95;firstname} {address&#95;lastname} {address&#95;street} {address&#95;city} {address&#95;state} {address&#95;post&#95;code} {address&#95;country} params-&gt;get('address'); echo JText::sprintf('TELEPHONE&#95;IN&#95;ADDRESS',preg&#95;replace(&quot;/^1?(&#92;d{3})(&#92;d{3})(&#92;d{4})$/&quot;, &quot;$1-$2-$3&quot;, preg&#95;replace(&quot;/&#91;^&#92;d&#93;/&quot;, &quot;&quot;, $address-&gt;address&#95;telephone))); ?&gt;")*

Hi,

This indicates that the state/country corresponding has been deleted from the table hikashop_zone in the database (or via the delete button in the menu System-&gt;Zones).
As these are default zones, you can download again the install package of HikaShop on our website and install it on yours. It will add back all the default zones that have been deleted.

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

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

[](#top)
