Display only the shipping locations on checkout

This topic has 18 replies, 2 voices, and was last updated 1 month ago ago by Samir Malik

  • Avatar: Nene
    Nene
    Participant
    December 22, 2025 at 21:20

    Greetings Team

    found an issue on Order checkout.

    1. I have configured 2 shipping zones only(Provices), But on the checkout the buyers see all provinces. I don’t want to deliver to all the provinces I want to deliver only for the 2 that i configured.

    2. when I click place order its not validating the address to identify whether the selected zone are configured for shipping and hence allows buyers to pay for eve if they are out of my shipping area.

    3. Similarly when I click place order it redirect to the payment form but on the oter hand I receive Order confirmation email. meaning that the order becomes completed before paying.

    https://prnt.sc/ZPwZTwCG5fid

    Please, contact administrator
    for this information.
    17 Answers
    Avatar: Nene
    Nene
    Participant
    December 22, 2025 at 21:32
    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 23, 2025 at 05:47

    Hello,

    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

    Avatar: Nene
    Nene
    Participant
    December 23, 2025 at 10:20

    Thanks 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

    https://prnt.sc/IfcHfi9c_yBL

    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 24, 2025 at 04:05

    Hello 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

    Avatar: Nene
    Nene
    Participant
    December 24, 2025 at 06:04

    Hello @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.

    Avatar: Nene
    Nene
    Participant
    December 24, 2025 at 08:57

    Hello team

    We have been stuck on this for sometime

    We’d much appreciate if you could jump on this and provide support today

    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 24, 2025 at 14:20

    Hello,

    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?

    https://prnt.sc/Vy654ebNsnLo

    Best regards,
    The 8Theme Team

    Avatar: Nene
    Nene
    Participant
    December 24, 2025 at 14:21

    Greetings @Samir,

    I can do that and let you know.
    Give me few minutes and I will update you

    Regards

    Avatar: Nene
    Nene
    Participant
    December 24, 2025 at 14:43

    Greetings @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

    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 24, 2025 at 15:08

    Dear 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

    Avatar: Nene
    Nene
    Participant
    December 24, 2025 at 20:46

    Greetings @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

    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 25, 2025 at 05:09

    Hello 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 % off

    Step 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 off

    Make 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

    Avatar: Nene
    Nene
    Participant
    December 25, 2025 at 10:07

    Greetings @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?

    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 25, 2025 at 10:53

    Hello 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

    Avatar: Nene
    Nene
    Participant
    December 25, 2025 at 11:48

    Thanks,

    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

    Avatar: Nene
    Nene
    Participant
    December 25, 2025 at 11:52

    For Further testing feel free to use the bellow details

    Please contact administrator
    for this information.
    Avatar: Samir Malik
    Samir Malik
    Support staff
    December 28, 2025 at 06:20

    Dear 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

  • Viewing 18 results - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.