-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 2.6.0
Daniel Mallory edited this page Jun 7, 2021
·
17 revisions
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 onPayments > Settings
. Make sure this is present, in order to test the scenarios below.
- 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 clickUpdate 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.
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
andDisplay 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 theDisplay 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.
- Add the currency switcher widget to the store as described in scenario 2.
- Go to WP Admin and click on the "Multi-Currency" tab on the
WooCommerce > Settings
page. Make a note of the exchange rates for the EUR, NZD and CDF currencies. - Go to the shop page on the store, switch between USD, EUR, NZD and CDF and verify that the prices all look right (are converted from their USD price at the appropriate rate) and are formatted accordingly:
-
USD
should look like$xx,xxx.xx
-
EUR
should look like€xx.xxx.xx
-
CDF
should look likeFrxx,xxx.xx
-
NZD
should look like$xx,xx.xx
-
- Make sure that discounted prices and variation price ranges are rendered correctly.
Simple Products
- Make sure the price is converted in the Shop, Product, Cart and Checkout pages.
- Purchase the product and check that the order has the right currency and price
- Navigate to the My Account -> Orders page and ensure that the currency used was the selected one.
Variable Products
- Make sure the price is converted in the Shop, Product, Cart and Checkout pages.
- Modify the selected currency and ensure the price range was updated. It is cached by WooCommerce by default, but should be refreshed when the exchange rate changes.
- Purchase the product and check that the order has the right currency and price
- Navigate to the My Account -> Orders page and ensure that the currency used was the selected one.
Coupons
- Enable coupon codes in the General WooCommerce settings
- Create three coupons, one for each type
- Ensure that the fixed cart discount and fixed product discount amounts are converted when using them
- Ensure that the percentage discount works correctly, without having its amount converted
- Add a minimum and maximum spend usage restriction to a coupon, and check that those values are converted and matched against the cart subtotal
Shipping
- Add a free and a flat rate shipping method to your shipping zone
- Make sure that they work correctly on the checkout page
- If
apply_charm_only_to_products
is enabled, the shipping rate should only be ceiled after conversion - If it's not, the shipping rate should also have the charm pricing added to it
Taxes
- Enable taxes in the General WooCommerce settings and create a standard tax rate
- Ensure that taxes are correctly applied and converted when using both "Prices inclusive of tax" and "prices exclusive of tax"
- Ensure that the shipping methods' taxes are also converted properly under both configurations