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

#   Custom city list

##

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

Less More

- Posts: 76
- Thank you received: 3
-
-

7 years 8 months ago [\#303864](#303864) by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")  *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#303864 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")* was created by *[NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")*

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.3
-- PHP version -- : 7....
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

We are trying to implement an automation for a shipping method. The problem we encountered is that the address_city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we.
However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.

Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania.
If there is a possibility of interfacing such a field with the values we have, please let us know.

Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...

Thank you,
Paul

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk2OTE5LWN1c3RvbS1jaXR5LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 8 months ago [\#303889](#303889) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#303889 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")*

Hi,

1. If you want to import all the cities without entering them one by one in the interface, then what you can do is :
- first create the custom field for the city dropdown with a few cities
- go in your phpmyadmin, export the table hikashop_field as a CSV file
- open the CSV file in notepad++ or another text editor and extract the cities listing from it
- use the search &amp; replaces features of your text editor to format your cities listing in the same manner and put back the whole list in the CSV file
- import back the CSV file via phpmyadmin
- that's it, you should now have a dropdown with all the cities.

2. What you can do is have two fields, the address_city field as a text input, and your dropdown custom field for the list of cities.
In the dropdown custom field setting, use the "display limited to" setting to romania.
In the address_city custom field, you will have to use that same setting, but you won't be able to select all the other countries via the interface. Again, you'll have to do that with an export/import similarily to what is described in point 1.

An alternative to all that is to develop your own custom field type with the development of a custom hikashop plugin implementing the field API: [ www.hikashop.com/support/documentation/6...entation.html#fields](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#fields)
That will allow you to have a solution way easier to maintain in the future and much cleaner. But it requires a developer to work on that and it's not that simple.

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

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

Less More

- Posts: 76
- Thank you received: 3
-
-

7 years 8 months ago -  7 years 8 months ago [\#304064](#304064) by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")  Replied by *[NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")* on topic *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#304064 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")*

Thank you. I will try and keep you informed.

Paul

L.E. However, a question arises:

The field created this way, will not be a Joomla core field. Furthermore, it will not have the same id, column name, like the one already used etc. Would not make this difficult the integration with the payment methods (paypal, credit card)? Just asking...

Last edit: 7 years 8 months ago by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk2OTE5LWN1c3RvbS1jaXR5LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 8 months ago [\#304109](#304109) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#304109 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")*

Hi,

HikaShop does not use Joomla core fields at all.
Now, regarding payment gateways integrations, it is correct that some payment plugins car send the address information to the payment gateway. So in that case, if you use other custom fields than the default ones, these payment plugins won't see them.
For example, the PayPal payment plugin has some options to send the address of the customer to PayPal. If you activate that option then it will use address_city to send the city name to PayPal, and if that field is not filled (because another one is used), then you'll end up with that field not sent which might even result in an error when redirected for the payment to PayPal.
Now most payment plugins do not use the address information, so for them it won't change anything.
Also, if you develop your own custom plugin to create your own type of custom field, you'll be able to change the type of the default address_city custom field to your own type and thus you'll be able to do what you want without any change for the payment plugins.

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

7 years 5 months ago [\#306971](#306971) by [michelevalente82](/forum/user/58327-michelevalente82 "View michelevalente82's Profile")  Replied by *[michelevalente82](/forum/user/58327-michelevalente82 "View michelevalente82's Profile")* on topic *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#306971 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")*

Hi Nicolas, we are in italy and we need a plugin which manages all italian regions. In all italian regions prices change according to the weight of the products (1 to 30 kg price x, 31 to 50 kg price y, 51 to 100 kg price z and over 101 kg price t for each kilo). how can we use manual plugin to setting up this? or exists a plugin which do this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk2OTE5LWN1c3RvbS1jaXR5LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 5 months ago [\#306980](#306980) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom city list](/forum/28-shipping-methods/896919-custom-city-list#306980 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.... -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  We are trying to implement an automation for a shipping method. The problem we encountered is that the address&#95;city field is not a Zone type. Now, we know that you have not and maybe will not implement this in the future, and we understand we. However, we need to use a selection method for this field, because the shipper will not accept the values in his app, unless thay are as its own.  Ok. Now, we have the complete list in the database. Also, we can set the City field like Single Dropdown, or Multiple dropdown. For such field types, we can manually set the values, of course, but we would not do that for all the thousand of values in Romania. If there is a possibility of interfacing such a field with the values we have, please let us know.  Of course, there is another issue, that for international expedition, we would need to use a normal Text Field. This means trouble...  Thank you, Paul")*

Hi,

I would need more information to understand your situation.
Are you talking about the prices of the products ? Or the shipping prices ?
Having the shipping price changing based on the weight of the order and/or the region is possible with the "manual shipping plugin" preinstalled with HikaShop.
Now if you're talking about the prices of the products, how does that work ? Do you sum the weight of all the products in the cart and aplpy a fixed price to the order ? Or that's per product ?

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

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