This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Bruno 7 months, 2 weeks ago.

Assigned support staff: Bruno.

Author Posts
February 24, 2019 at 4:49 pm #3237014

kasperR-5

Hi,
I would like to have the contries in the drop-down at check-out (when customers fill out their address) to dependent on what language the customer has selected. Is this possible?

February 26, 2019 at 2:17 am #3242610

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for contacting us. Please, my sincere apologies for the delay in answering. I would be very happy to help you but I didn't fully understand what is the issue.

When I access the checkout page I already see a drop-down menu with the list of countries. I'll attach an image for you to see.

If this is not what you are asking, can you please elaborate a little more so I can better understand? Sometimes screenshots illustrating what you mean may go a long way to clarify what words fail to transmit so if you like make use of "upload an image" below the comment area.

Thank you.

March 1, 2019 at 2:28 pm #3261603

kasperR-5

Hi,
Thanks for your reply.
I want the countries in the drop-down to be different depend on the language selected. If a user select Sweedish then the only delevery option should be Sweeden for example.

March 1, 2019 at 2:33 pm #3261610

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you for the explanation. This looks like it will require custom coding. As this is a custom feature, unfortunately, this is beyond the scope of our support.

Here is an example I found on the internet: https://stackoverflow.com/a/45385819

Also, we have a list of WPML and WooCommerce Multilingual hooks that can help you develop such feature, which can be seen in the links below:

- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference
- https://wpml.org/documentation/related-projects/woocommerce-multilingual/wcml-hooks-reference/

If you prefer, you can contact one of our certified partners who can develop small to large features for your site: http://wpml.org/documentation/support/wpml-contractors/

Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.