• Resolved thehowarde

    (@thehowarde)


    Should 2.x be working when you have zones pre-defined? I was using the country selector, and now since switching to 2.x, the alternate countries are not showing up. The array of $countries didn’t include all of my zones, so I tried tricking the template by defining my own array of $countries in an override of the country-selector.php template, but while it displayed the country, switching to it didn’t do anything. But it seems like $selected_country wasn’t being passed to the template. I didn’t really spend any more time debugging, I just rolled back to 1.8.25 and everything is fine.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    In version 2.0 the country switcher template displays the countries you defined in the “Selling location(s)” option (at WooCommerce > Settings > General).

    Are all countries of your pricing zones included in the “Selling location(s)” option?

    Thread Starter thehowarde

    (@thehowarde)

    Well not all countries are able to be shipped to for this particular company.

    They want to show the pricing available in another country, but their distributor ships for that country, so by design, (for this set of websites) we’re using this plugin to display prices based on where they are located.

    So this change, kind of breaks it for me. ??

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    We introduced this change to keep the integrity with the rest of the plugin: You also can’t add a country to a pricing zone if the country is not in the list of “Selling location(s).”

    How could you create a zone with countries that aren’t in the “Selling location(s)”?

    In any case, I think it is a good idea to provide users a way to use the whole list of countries instead of only those found in “selling location(s)”.

    Give me some time to review it. Thanks for your feedback.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi, version 2.0.2 should solve your issue.
    Also, you can use:

    add_filter( 'wc_price_based_country_allow_all_countries', '__return_true' );

    to use all countries instead of the “allowed countries” set in the selling locations option.

    Thread Starter thehowarde

    (@thehowarde)

    Thank you for the change and the responsiveness to the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Backwards Compatibility’ is closed to new replies.