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

#   No shipping available when state field disabled

##

- **[theDigger](/forum/user/349-thedigger "View theDigger's Profile")**
- [![theDigger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/349-thedigger "View theDigger's Profile") Topic Author
- [ Offline](/forum/user/349-thedigger)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 11 months ago [\#2715](#2715) by [theDigger](/forum/user/349-thedigger "View theDigger's Profile")  *[No shipping available when state field disabled](/forum/3-bug-report/2715-no-shipping-available-when-state-field-disabled#2715 "Hi,  I have set up a shipping method for Sweden but when I disable the state field Hikashop sais that there is no shipping method available to my address. It works fine with the state field activated.  Nils")* was created by *[theDigger](/forum/user/349-thedigger "View theDigger's Profile")*

Hi,

I have set up a shipping method for Sweden but when I disable the state field Hikashop sais that there is no shipping method available to my address. It works fine with the state field activated.

Nils

---

Hikashop Essential 1.4.0

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

15 years 11 months ago [\#2720](#2720) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: No shipping available when state field disabled](/forum/3-bug-report/2715-no-shipping-available-when-state-field-disabled#2720 "Hi,  I have set up a shipping method for Sweden but when I disable the state field Hikashop sais that there is no shipping method available to my address. It works fine with the state field activated.  Nils")*

Hi,
That should only be the case if you already had the address already in the system If you create a new address and use it, you should get the shipping methods.

If you use the latest version 1.3.9 or above, you need to change the code Code:

if(!empty($order-&gt;shipping_address) &amp;&amp; !empty($order-&gt;shipping_address-&gt;address_state)){ $field='address_state'; }

to Code:

$fieldClass = hikashop::get('class.field'); $fields = $fieldClass-&gt;getData('frontcomp','address'); if(in_array('address_state',array_keys($fields)) &amp;&amp; !empty($order-&gt;shipping_address) &amp;&amp; !empty($order-&gt;shipping_address-&gt;address_state)){ $field='address_state'; }

in the file administrator/components/com_hikahsop/classes/zone.php near line 70 and that should fix the problem.
For previous versions you need to edit the file plugins/hikashopshipping/manual.php and do the same change.

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

- **[theDigger](/forum/user/349-thedigger "View theDigger's Profile")**
- [![theDigger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/349-thedigger "View theDigger's Profile") Topic Author
- [ Offline](/forum/user/349-thedigger)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 11 months ago [\#2759](#2759) by [theDigger](/forum/user/349-thedigger "View theDigger's Profile")  Replied by *[theDigger](/forum/user/349-thedigger "View theDigger's Profile")* on topic *[Re: No shipping available when state field disabled](/forum/3-bug-report/2715-no-shipping-available-when-state-field-disabled#2759 "Hi,  I have set up a shipping method for Sweden but when I disable the state field Hikashop sais that there is no shipping method available to my address. It works fine with the state field activated.  Nils")*

It seems to work in 1.3.9 when I re-save the address.

---

Hikashop Essential 1.4.0

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

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