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

#   Edit shipping / billing addresses on checkout

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 2 weeks ago [\#179453](#179453) by [hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")  *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#179453 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")* was created by *[hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- Browser(s) name and version -- : Chrome

Hi, I have a few questions about shipping/billing addresses on the checkout page.

1. How to restrict the "country", only in the shipping address? (ex: shipping address country should always be "Australia". Else display error message. Billing address can have any country)

2. How to add a custom field only to the shipping address? (ex: I need to have "nearest city" field only for shipping address.)

3. How to populate a drop down list custom field, based on the selected "state" in address. (ex: the list in "nearest city" changes based on the selected "state")

Many thanks in advance.

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

12 years 2 weeks ago [\#179463](#179463) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#179463 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")*

Hi,

1. There is no option to do that. Even more so that the addresses of the user can be used for either shipping or billing.
What you can do though is to restrict your shipping methods to the country zone "Australia". That way, if the user selected a shipping address outside of Australia, he will get an error message on the selection of the shipping methods and won't be able to proceed unless he changes his shipping address to an address within Australia.

2. As point one, there is no option to do that as addresses are shared between billing and shipping. The best I can propose is to add a custom address field via the menu System&gt;Custom field, do not require it, and add some CSS code to hide it for the billing address form.

3. That's not possible. It would require a complex customization of the code.

Note however that nothing is impossible here. It's just impossible with the options provided by default. But you can always contact a third party developer like our partners [ www.hikashop.com/home/our-partners.html](http://www.hikashop.com/home/our-partners.html) and have that customized for you by them.

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

12 years 2 weeks ago [\#179557](#179557) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#179557 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")*

3. Although Nicolas is correct, you can achieve this by cascading custom fields.
I made sequence of fields State-&gt;City-&gt;Shop as following:
- I disabled build in state field
- created dropdown custom field for state with "Display limited to" Country
- for every state I created dropdown custom fields for city with "Display limited to" respective state
- for every city I created dropdown custom fields shop with "Display limited to" respective city

But this solution comes with several downsides.
It's a lot of work(but you can cheat and generate fields programatically) and it comes with performance hit as address table becomes huge.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 1 week ago [\#179816](#179816) by [hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")  Replied by *[hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")* on topic *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#179816 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")*

Thank you Nicolas and korzo for your quick reply.
I managed to solve part 1 as Nicolas suggested.

However, in solving part 3, The states and cities dropdown lists still show up for all the countries even when I have used
"Display limited to" option. How do I disable the build in States as you suggested ?

Thanks in advance.

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

12 years 1 week ago -  12 years 1 week ago [\#179839](#179839) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#179839 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")*

Find "address_state" in Custom fields and unpublish it.
Then create or update 2 custom fields as on screenshots.

- [ ![my&#95;state.jpg](/forum/attachment/20707) ](/forum/attachment/20707 "my&#95;state.jpg") [ ](/forum/attachment/20707?download=1 "my&#95;state.jpg")
- [ ![nearestcity.jpg](/forum/attachment/20708) ](/forum/attachment/20708 "nearestcity.jpg") [ ](/forum/attachment/20708?download=1 "nearestcity.jpg")

Last edit: 12 years 1 week ago by [korzo](/forum/user/34428-korzo "View korzo's Profile").

The following user(s) said Thank You: [hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 1 week ago [\#180259](#180259) by [hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")  Replied by *[hiranyajaya](/forum/user/34022-hiranyajaya "View hiranyajaya's Profile")* on topic *[Edit shipping / billing addresses on checkout](/forum/27-checkout/872982-edit-shipping-billing-addresses-on-checkout#180259 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- Browser(s) name and version -- : Chrome  Hi, I have a few questions about shipping/billing addresses on the checkout page.  1. How to restrict the &quot;country&quot;, only in the shipping address? (ex: shipping address country should always be &quot;Australia&quot;. Else display error message. Billing address can have any country)  2. How to add a custom field only to the shipping address? (ex: I need to have &quot;nearest city&quot; field only for shipping address.)  3. How to populate a drop down list custom field, based on the selected &quot;state&quot; in address. (ex: the list in &quot;nearest city&quot; changes based on the selected &quot;state&quot;)  Many thanks in advance.")*

Thank you very much for the informative reply !
I will try that and let you know the progress ![:)](/media/kunena/emoticons/3.png ":)")

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