Skip to content

Release testing instructions for WC Payments 2.6.0

Daniel Mallory edited this page Jun 7, 2021 · 17 revisions

Testing for Customer Multi-Currency Feature

Customer Multi-Currency allows a shop to allow their customers to choose which currency they'd like to use to see and pay for products.

Pre-requisites/Setup:

  • Set _wcpay_feature_customer_multi_currency option in the wp_options table to 1. Or use the following snippet: update_option( '_wcpay_feature_customer_multi_currency', '1' ); in the Code Snippet plugin.
  • Once you have the _wcpay_feature_customer_multi_currency option set to 1, you should be able to see a "Multi-Currency" settings tab on the settings page after clicking on Payments > Settings. Make sure this is present, in order to test the scenarios below.

Test Scenario 1

  • Go to WP Admin and click on the "Multi-Currency" tab on the WooCommerce > Settings page.
  • On the settings page, click the Add Currencies button. A modal should appear.
  • Verify that the search box works as expected by searching for a currency and verifying that the currency list updates only the expected currency displays.
  • Tick the Danish Krone option in the currency list then click Update selected. The UI should update and Danish Krone should now be in the list of enabled currencies.
  • Click the bin icon to the right of Danish Krone. A modal should appear. Click Remove Currency. Verify that Danish Krone gets removed from the list of enabled currencies.

Test Scenario 2

As an admin:

  • In WP Admin, click on Appearance > Widgets. Verify you can see "Currency Switcher" in the list of available widgets.
  • Click on the currency switcher widget and add it to the sidebar of the site. Tick both the Display currency symbols and Display flags options.

As a guest user:

  • Go to the shop page on the site. Verify the currency switcher appears in the sidebar. Change the selected currency and verify that the page should reload and all items in the shop will now display in the selected currency.
  • Test toggling the Display currency symbol option and verify the currency symbol no longer displays in the currency switcher list. Do the same with the Display flags option.
  • Add some items to the cart and go to the cart page, click Pay now and use a Stripe test card: 4242 4242 4242 4242, any cardholder name, valid expiration date and CVV will work.
  • Order should be completed correctly.

As a logged in user:

  • Go to the My Account -> Account Details page. Update the "Default currency" option, save changes.
  • Go to the shop page. Prices should be displayed in your selected currency.
  • Add some items to the cart and go to the cart page, click Pay now and use a Stripe test card: 4242 4242 4242 4242, any cardholder name, valid expiration date and CVV will work.
  • Order should be completed correctly.
Clone this wiki locally