Display only the shipping locations on checkout
17 replies2 participantsUpdated by Samir Malik
-
17 Answers
#463047 CopiedHello,
By default, WooCommerce displays all provinces or states on the checkout page.
To restrict the list to specific provinces or states, you may use the following custom code. Please add it to the functions.php file located in your child theme:
// Limit states for a specific country (e.g., USA) add_filter('woocommerce_states', 'limit_checkout_states'); function limit_checkout_states($states) { // Define allowed states for the United States $states['US'] = array( 'CA' => 'California', 'NY' => 'New York', 'TX' => 'Texas', 'FL' => 'Florida' // Add more states as needed ); // You can apply the same logic for other countries // $states['CA'] = array(...); // For Canada return $states; }We hope this information is helpful.
Best regards,
8Theme Team#463057 CopiedThanks for the support
this works fine now.
Missing the last portion regarding the payment validation. When I click place order the order is placed before validating the payment. The buyers get email confirmation of the order.
Attaching the screenshot of the checkout and selected payment method for your validation and test
Please help with this portion for us to finalize the store configs
#463080 CopiedHello Nene,
We are still unclear about the following point: “Missing the last portion regarding the payment validation.”
Could you please provide more details or clarify this further?
Best regards,
The 8Theme Team#463143 CopiedHello @Samir
Can you place an order and see what happens?
Your order will be confirmed and you will get order number by email before filling payment details.
Eg: Customer goes to buy a product. he fills the form and shipping address and he chooses “paysuit” payment options. He is redirected to payment page but simultaneosly the order is confirmed and the buyer gets email with the order details. but the payment is not done yet.
#463144 CopiedHello team
We have been stuck on this for sometime
We’d much appreciate if you could jump on this and provide support today
#463151 CopiedHello,
It appears that the WooCommerce plugin is not compatible with PHP version 8.3.29.
Could you please switch the PHP version to 8.2.x instead?
Best regards,
The 8Theme Team#463173 CopiedGreetings @Samir,
I can do that and let you know.
Give me few minutes and I will update youRegards
#463175 CopiedGreetings @Samir,
thanks for your attention
I would like to update you that the PHP Version of eshop.lugarcerto.co.mz was successfully changed to 8.2 as requested
Please validate and let me know if is something else I can do to support sorting this
#463178 CopiedDear Nene,
We have resolved the issues related to the WooCommerce plugin.
Could you please test the Mpesa | EMola | Mkesh payment methods again on the checkout page? If you encounter any errors, kindly capture and share screenshots or videos with us.
Thank you for your cooperation.
Best regards,
The 8Theme Team#463180 CopiedGreetings @Samir,
I missed to click to post the reply 5hrs ago 🙁
But here is the response
The issue persists. And just for alignment there two issues.
1. The woocommerce error is still visible on the store. Please see the screenshot – https://prnt.sc/fvlRcm3OUvMg
or this url – https://eshop.lugarcerto.co.mz/shop/2. Regarding the “test the Mpesa | EMola | Mkesh payment methods again on the checkout page”. The issue still persists. Here we don’t get error. What happens is that when you click “Place Order” , the page redirects to payment however before finalizing the payment you get Order confirmation by email.
This means that Buyers finalize the orders begore paying.
You can validate this by the following steps – On the Checkout page -> Fill the shipping address including existing email -> Select paysuit payment (MPESA | EMola | Mkesh) —> click Place Order.
You will see that you will get email confirming your orders. However you havent done the payment – https://prnt.sc/oTqhiUcslBmV#463191 CopiedHello Nene,
1. We have identified the issues on your shop/product page. There are some syntax errors in the translation.
Please follow the steps below to fix them using Loco Translate (recommended):
Step 1: Open WooCommerce translations
– Go to WP Admin → Loco Translate
– Click Plugins
– Select WooCommerce
– Choose the active language (the one causing the error)Step 2: Find the incorrect string
– In the search box, type: %
– Carefully review all strings that contain a %
– Look for strings such as:
– 20 %
– Save %
– Up to % offStep 3: Correct the format
Important rule: Every % must either be:
– A valid specifier (%s, %d), or
– Escaped as %%Examples:
Incorrect: Save 20 %
Correct: Save 20 %%Incorrect: % off
Correct: %s offMake sure the translation matches the English original exactly.
Step 4: Save and clear the cache
– Click Save
– Clear any caching plugin, server cache (if applicable), and CDN (e.g., Cloudflare)
– Refresh the page and confirm that the error has been resolved.2. Since the MPESA | EMola | Mkesh payment method is a third-party plugin, could you please contact their support team for further assistance?
Best regards,
8Theme Team#463196 CopiedGreetings @Samir
There is a confusion here
I am using default translation. I am not using Loco and didn’t touch any translation string
Please feel free to disable the translation if required and test
We are expecting to get this solved so that the can move forward.
2 regarding the payment issue. Not too sure of you are clear of the issue. Have you tested it?
#463203 CopiedHello Nene,
We currently do not have any test accounts available: https://prnt.sc/Ydbrgye7eYMv.
By default, the order status may appear as “Pending” when users click the “Place Order” button. After a successful payment, the status will automatically change to “Processing.”
Please contact the plugin author (MPESA | EMola | Mkesh) to verify the workflow.
Thank you.
Best regards,
8Theme Team#463205 CopiedThanks,
After couple of emails I think now we are aligned.
I see your testing Order.I have tested the whole worflow.
As you saw when you click “Place Order” you get an email confirming that your transaction was successful – This mensage is misleading because you haven’t made a transaction.
I tested the whole worflow and I made the payment. When I make a payment the transaction gets to processing. But no email is sent confirming that the payment was successful.
—–
I think the email is being sent at the wrong status.
Instead of being sent when transaction is on Hold it should be sent when its on processing.Or should be sent on Both Status. But its worrying when the buyer gets email confirmation if he hasn’t paid and doesnt get confirmation after paying.
Please help on this.
Regards
#463207 CopiedFor Further testing feel free to use the bellow details
Please contact administrator
for this information.#463208 CopiedDear Nene,
We would like to ask whether you have removed that product, as we are no longer able to access it.
Best regards,
The 8Theme Team#463351 Copied -
Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.
Similar topics
- Maybe A Shipping Field Issue – Cart Spinning and Address Issues On Checkout PagePlease see comments in the private section thanks.Solved11 replies
- olajkultura.hu webshop checkout menu can’t load the shipping and pay methodI buy from you a licence, and i have a problem, please help me. In checkout menu is not working good, in iphone. More costumer…Solved13 replies
- Shipping methods layout alignment issue on Checkout pageOn the Checkout page, the shipping method options (e.g. “ACS Courier”, “Pickup from store”) are currently displayed side-by-side…Solved8 replies
- Shipping price is not displayed in cart/through out checkout processThrough out the checkout process as well as when viewing the shopping cart, the shipping price is not displayed. Even after…Solved6 replies
- shipping 1 —> how to remove 1 at checkout pageThere is only one shipping method available, but the number '1' appears next to the shipping label (e.g., 'Shipping 1'). How can…Solved5 replies
- Shipping vat is not being calculated at checkoutNot shure if this is something with the theme but from nowere the vat shipping stoped being calculated at checkout, it just…Solved5 replies















