• Resolved jandaltech

    (@jandaltech)


    Since I last updated the swiss knife plugin, orders are failing with the message:

    Region is not valid. Please enter one of the following: Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array

    I know it is the swiss knife plugin as it works when I disable it, and returns this error again when I reenable it.

    I have used the plugin to add a couple extra custom fields, but have not made any changes to the region field.

    Thank you for any advice or assistance you may be able to offer.

    https://wordpress.org/plugins/woocommerce-poor-guys-swiss-knife/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I have the same problem, please give us a good solution , thanks we waiting.

    Plugin Author ulihake

    (@ulih)

    Hello colibry, hello jandaltech.

    Sorry to hear that. I need some more information as I’m not able to reproduce this error on my test sites. Nevertheless this has been reported by other users, too. I was able to fix this on a client’s site and thought that this is not directly related with my plugin.

    The error seems to occur in the context of some site configurations. It would be extremely helpful if you could provide administration access to a site with the error. You can send me login details via the contact form of http://www.takebarcelona.com/contact

    Thanks.
    uh

    I have send the credentials to you, thanks.

    Plugin Author ulihake

    (@ulih)

    I did some additional tests:

    1. I activated ajax in WooCommerce
    2. I tested the checkout form with Ajax enabled
    3. I activated country and state settings in WooCommerce Poor Guys Swiss Knife to display country selector and country dependent state selector or state text input on the checkout form
    4. I proceeded with checkout

    No problems. You should have received the orders and you can check that they were processed correctly.

    Can you indicate a condition where we have this array array array problem to reproduce it?

    Regards.

    uh

    Plugin Author ulihake

    (@ulih)

    Hello colibry.

    More tests:

    I deactivated ajax support in WooCommerce to see if this changes the situation and no problems: Works perfectly. I can add products to the cart and select countries, states, etc. without problems and place the order. You should have received the order emails as I got the copies already.

    I need some more information to trace this problem as I’m not able to reproduce this on your site either. I’ve tested this on my test sites too to be sure. I did new installs of different combinations of WC 2.12 and WC 2.2 in combination with the latest release of the plugin and I was not able to reproduce this.

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    Hello colibry, hello jandaltech.

    Some general remarks on country and state field:

    1. If you use international billing and shipping country and state field should be activated.
    2. WooCommerce handles the process of selecting the correct configuration automatically presenting different layouts for the state field, or as a option selector or as a text input field when the user switches the country using the country selector.
    3. WooCommerce Poor Guys Swiss Knife allows you to overwrite the default automatic handling for core address fields but you should never deactivate neither the country nor the state field if you bill or ship to more than one country!!!

    @colibry: Did you deactivate the state field, the “Judetul” field? What I’ve seen is that you deactivated the country selector and the state field but that you allow for international billing and shipping. This combination does not make any sense.

    Once again: if you do international billing and shipping the best is to leave the default settings untouched for the country and the state fields!

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    @jandaltech.

    colibry has confirmed that his problem is solved. Could you please try disabling all caches and also check your country and state field configuration for billing, shipping and checkout localization in WooCommerce Poor Guys Swiss Knife.

    If you did changes there please try to reset the settings to default and test afterwards.

    Please report if this solves your problem.

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    @jandaltech.

    I will close this tomorrow if there’s no feedback from your side.

    Regards.
    uh

    I have tested to and the problem is solved.
    Thank you Ulihake for the perfect support. It was very quick and better then a payd plugin support.
    Im glad to see my market working again in good condition.

    ps. the woocommerce 2.2 is not yet the perfect update solution 🙁 for who have the old version 2.1 i sugest to wait a little bit more.

    Good luck with this nice plugin ulihake.

    If you need help for translate it in Romanian i will be free to help you.

    Thread Starter jandaltech

    (@jandaltech)

    Hi

    I’d like to second colibry – your support is impressive! Thankyou. Based on this I would definitely purchase the paid version when I can.

    I have woocommerce 2.2.2. I’m not sure what you mean about disabling caches or where to do that.

    Woocommerce is set to a base location in NZ and to only sell to NZ (New Zealand).

    Checkout localization has state (State / County) set to NOT required for New Zealand locale.
    Billing has State / County of type state NOT required, and currently checked as removed so the shop still works without it right now.
    Shipping has State / County of type state REQUIRED, and also currently checked as removed so the shop will function.

    I’m not actually 100% sure which of the settings I’ve changed from default… is there a way to do that in one go? Remove and reinstall the plugin?

    I will send you an administrator login and URL for the website to your contact form at takebarcelona.com also.

    I really appreciate your help and hard work,

    Chris

    Plugin Author ulihake

    (@ulih)

    Hello jandaltech.

    I’ve checked your site, inside, outside… everything seems to work fine. I configured some settings to make them more consistent, but as there’s only one country the shop sells to, that’s more for the eye… to make a field required and remove it at the same time does not make much sense…

    I also configured the default and the localized setting for the country using Checkout Localization. I’ve tested afterwards to assure things… no problems.

    If there’s something not working which I haven’t detected, please contact again. I will receive a notification if you update this thread.

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    Hello jandaltech.

    I’ve detected a little stupid error… the personalization message is not stored correctly. This was fixed for custom billing fields… and I thought for custom shipping fields as well but no…

    I will provide an update for this today.

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    UPDATE on this:
    The latest WC version 2.2+ is more picky when you disable the country field and enable the state field. These two fields go together and are vital for WooCommerce. If you enable state (region) you should not disable country even if you only offer services in one country.

    If you don’t want to display the superfluous country information if you only have one billing and/or shipping country you can use (or adapt) this css snippet to avoid display:

    #billing_country_field, shipping_country_field {
    display: none;
    }

    I will include a check for this in one of the next updates.
    Regards.
    uh

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Region is not valid since latest update’ is closed to new replies.