Skip to content

Conversation

@barryhughes
Copy link
Member

@barryhughes barryhughes commented Dec 14, 2022

Beginning 2023-01-01, Croatia starts using the Euro. For any new stores with a base of operations in Croatia, this should be the default currency from January 1st onwards (though it will still be possible for merchants to manually switch back to HKR if preferred).

For existing stores, no automated change will take place (or, not via the work contained in this PR).

Closes #35872.

  • This PR is a very minor change/addition and does not require testing instructions (if checked you can ignore/remove the next section).

How to test the changes in this Pull Request:

(Updated! We simplified this a lot.)

  1. Run the WooCommerce onboarding wizard.
    • You can do this by installing and activating WooCommerce in a brand new site.
    • Or, via the WooCommerce ▸ Settings screen, locate the Help pulldown and re-run the wizard that way:

run-onboarding-wizard

  1. Within the first onboarding screen, select Croatia as the country/region (most of the other settings can be ignored/you can supply the bare minimum ... and, for expediency, I recommend against installing any extras or switching theme):

wizard-country-region-croatia

  1. Now navigate to WooCommerce ▸ Settings ▸ General:
    • Country/state field should still be Croatia.
    • The currency should be Euro (€).

settings-currency-euro

Other information:

  • Once/if we are happy with this approach, I will log a follow-up issue so we can come back after the transition period (ie, targeting 7.4 or later) and clean up i18n/locale-info.php.
  • I considered making the entirety of i18n/local-info.php filterable (and we could then make these tweaks via a filter function). Let me know if that's something we prefer to do ... however, since I don't think there has so far been any demand for such a filter I preferred to make a minimal change that does not expand our public API surface any further.
  • A little unsure how we want to deal with references to HKR in the future, post-transition (when it ceases to be a valid currency), but we can also handle that at some later point/via the follow-up issue.

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Dec 14, 2022
@barryhughes barryhughes requested review from a team and jorgeatorres and removed request for a team December 14, 2022 00:09
@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2022

Test Results Summary

Commit SHA: 7592d1e

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202611m 13s
E2E Tests187006019316m 41s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@jorgeatorres
Copy link
Member

jorgeatorres commented Dec 15, 2022

Hi @barryhughes!

This looks good to me, but I wonder if it actually closes #35872 as it doesn't enforce this part:

Croatian stores shouldn't be able to use HRK as their main currency after the first 2 weeks in January.

Not a blocker, and something we can do in a follow-up issue, but then that issue will be as urgent as this one. I suppose we could just deal with that after the 2nd week of January (by removing references to HRK and updating the currency) but I wonder if that'd be best to include here (and now). What are your thoughts?

@barryhughes
Copy link
Member Author

So to expand on this part:

Croatian stores shouldn't be able to use HRK as their main currency after the first 2 weeks in January.

In practice, new stores will be shepherded into using EUR as of this change. I get the spirit of the above statement, but it's a tricky proposition for us and I think blocking the ability to select HRK (without removing it completely—not sure we can safely do that without migration code) is going to be a hard ask. Imho, it makes more sense to circle back after a decent interval of time has passed and remove it then.

Copy link
Member

@jorgeatorres jorgeatorres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @barryhughes!

@jorgeatorres jorgeatorres merged commit 186dc42 into trunk Dec 15, 2022
@jorgeatorres jorgeatorres deleted the fix/35872-hrk-eur branch December 15, 2022 19:26
@github-actions github-actions bot added this to the 7.4.0 milestone Dec 15, 2022
samueljseay pushed a commit that referenced this pull request Dec 15, 2022
* Change the default currency for Croatia to Euros, beginning 2023-01-01.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.

* Simplify: we don't need the date-conditional because we are shipping in 7.3 (post-transition).

* Whitespace.

* Update continents test to account for Croatia currency change.

* Further change to API test for continents/currencies.
@psealock psealock modified the milestones: 7.4.0, 7.3.0 Dec 18, 2022
github-actions bot pushed a commit that referenced this pull request Dec 18, 2022
* Change the default currency for Croatia to Euros, beginning 2023-01-01.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.

* Simplify: we don't need the date-conditional because we are shipping in 7.3 (post-transition).

* Whitespace.

* Update continents test to account for Croatia currency change.

* Further change to API test for continents/currencies.
psealock pushed a commit that referenced this pull request Dec 18, 2022
* Change the default currency for Croatia to Euros (#35963)

* Change the default currency for Croatia to Euros, beginning 2023-01-01.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.

* Simplify: we don't need the date-conditional because we are shipping in 7.3 (post-transition).

* Whitespace.

* Update continents test to account for Croatia currency change.

* Further change to API test for continents/currencies.

* Prep for cherry pick 35963

Co-authored-by: Barry Hughes <[email protected]>
Co-authored-by: WooCommerce Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Croatia entering Eurozone on Jan 1st, 2023

4 participants