Shiping world
-
Hello good time
I am in Iran and I want to send packages to all countries of the world. I enable shipping to all countries from the WooCommerce > configuration section, but I have a problem on the invoice page. In this way, if I select any country, only the cities of Iran are displayed and the city of the selected country is not shown.
How should I solve this problem?
-
Hi @mohsen2677,
Thanks for reaching out.
I understand you’re having an issue with selecting countries during checkout in your store, is that correct?
So that we can have a better visual understanding on this issue, please share with us a screen recording of the behavior when making a purchase. You can use a screen recording software like https://www.loom.com/ to record the video and share the link here with us.
Also, please share screenshots of your shipping settings. Here’s how to make a screenshot: https://wordpress.com/support/make-a-screenshot/. You can use a screenshot sharing software like https://snipboard.io/ and share the direct link here with us.
Looking forward to assisting you further.
h
In the video, you can see that there is a problem in finding the provinces and cities of the selected countries.
Hi @mohsen2677
In this way, if I select any country, only the cities of Iran are displayed and the city of the selected country is not shown.
By default, WooCommerce lets you select States/provinces for all countries (except a few). However, you’ll need to input city names manually.
I tried to recreate the issue you’re experiencing on my end, but everything seems to be working as expected.
However, if still states of Iran sows for all other countries, head over to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients – Clear
- Expired transients – Clear
- Clear template cache – Clear
- Capabilities – Reset Capabilities
- Clear customer sessions -Clear
- Product lookup tables – Regenerate
- Regenerate the product attributes lookup table – Regenerate
Next, please clear your browser and site cache and then check again.
If this makes no difference, you can run a conflict test to help you identify the cause of the issue.
- Temporarily switch your theme to Storefront or Twenty Twenty-Four
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you don’t see the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
I hope that helps! Let me know once you have done a conflict test!
You see, I want to ship to several countries in total, so I selected shipping to specific countries and selected several countries. (in the picture)
There is a problem in selecting the city in the invoice and it does not find the cities and even for some countries like Iraq it could not find the provinces. (in video)
https://uupload.ir/view/rec_0001_14qm.mp4/
I did what you said but it didn’t work. I also disabled the plugins, but it only recognizes the country of Iran and it was not possible to select other countries.
Hey, @mohsen2677!
Thanks for the video!
There is a problem in selecting the city in the invoice and it does not find the cities
The feature to find a city is not a default feature of WooCommerce. As my colleague mentioned, by default, cities need to be written manually.
So this is being added by either your theme or a plugin.
Since this is not a default feature, we are not able to assist with it. Please reach out to the support of the theme/plugin so they can help you further ??even for some countries like Iraq it could not find the provinces.
This is expected. As my colleague mentioned there are a few countries that do not have the state/province selector and you will need to write it manually and Iraq is one of them.
I did what you said but it didn’t work. I also disabled the plugins, but it only recognizes the country of Iran and it was not possible to select other countries.
To confirm, when you disable all plugins and switch to a default theme such as Storefront, you can only select Iran as a country?
Do you mind sharing a video of this too so we can take a look?Looking forward to your reply.
Have a wonderful day!
Why is the province complaining? When I select Iran, there is no problem, but for other countries, I select the province, it says that you have to fill in the province.
And how to correct the error related to the postal code? It works correctly in selecting the country of Iran, but it does not accept for other countries. How to make this optional?
Hi @mohsen2677
Why is the province complaining? When I select Iran, there is no problem, but for other countries, I select the province, it says that you have to fill in the province.
This is likely because WooCommerce requires customers to fill in the state/province field for countries where this information is typically used in addresses. The field may not be available for countries where this is not the case, such as Iraq. You may need to add these provinces, if necessary, manually.
And how to correct the error related to the postal code? It works correctly in selecting the country of Iran, but it does not accept for other countries. How to make this optional?
It seems like the validation rules for the postal codes of the countries you selected are not being met. This could be due to incorrect formatting or the postal code not being recognized. Please ensure that each country’s postal codes are entered in the correct format.
However, if you would like to make the postal code field optional, you can do so by using a plugin or adding custom code.
- https://developer.woocommerce.com/docs/customizing-checkout-fields-using-actions-and-filters/
- https://www.businessbloomer.com/woocommerce-disable-postcodezip-validation-checkout/
- https://www.businessbloomer.com/woocommerce-disable-postcodezip-field-checkout-page/
Please note that writing or providing custom code is not within the scope of our support policy. If you are still having problems, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:
- A local web developer
- Codeable.io
- WooExperts
I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.
Can you tell me what exactly I should do to solve the problem of the provinces?
Hey, @mohsen2677!
Can you tell me what exactly I should do to solve the problem of the provinces?
Do you mind sharing your website’s URL so we can take a closer look at this issue?
It would be even better if you can set up a staging site, to have all plugins but Woo deactivated and a default theme such as Storefront on, so we can run some tests and check the website on a default environment, without changing anything on the live site.
You can ask your host if they offer this service, or you can use WP Staging for quickly spin up a new test site.
Looking forward to your reply.
Have a wonderful day!
salamatar.ir
-
This reply was modified 7 months, 1 week ago by
mohsen2677.
-
This reply was modified 7 months, 1 week ago by
mohsen2677.
Hey, @mohsen2677!
Thank you for sharing the link.
I tried checking it, but the error message did not show when I put the state and zipcode. I believe the error message only shows to you if you try to complete the order, right? Which we can only do if the payment method is in test mode.
Can you please set up a staging site, with all plugins but Woo deactivated and a default theme such as Storefront on, so we can run some tests?
Please also activate Cash On Delivery as a payment method in the Staging site so we can test it ??
You can ask your host if they offer this service, or you can use WP Staging for quickly spinning up a new test site.
—
Also, on the live site, can you please trigger the issue again and follow the steps below:
- Right click on the page with the error message and select “inspect”
- Go to the Console tab
- Take a screenshot of everything that shows on this tab so we can check for errors
Looking forward to your reply.
Have a wonderful day!
console
- The topic ‘Shiping world’ is closed to new replies.