-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 3.2.0
The currency switcher widget should be shown when WCPay is not set up or there is only one store currency enabled.
- Create a new JN site.
- Install the WooCommerce plugin from the branch.
- Set the development mode with the Code Snippets plugin https://docs.woocommerce.com/document/payments/testing/dev-mode/#section-2.
- Install the Organic Goodness theme p1632844372035200/1631896155.144900-slack-C01B8KNUYSW.
- Add the following code to the theme template part
organic-goodness/template-parts/header/menu-secondary.php
<?php if ( function_exists('wc_get_currency_switcher_markup') ) { ?>
<li id="woocommerce-multi-currency-switcher" class="menu-item">
<?php
$instance = [
'symbol' => true,
'flag' => false,
];
echo wc_get_currency_switcher_markup( $instance, [] );
?>
</li>
<?php } ?>
- Observe that no currency switcher widget is added (before WC Payments onboarding is passed and MC is set up).
- Pass WC Payments onboarding and enable Multi-Currency (add at least one currency except store currency).
- Observe that currency switcher widget is now added.
- Remove all the currencies except store currency. Switcher widget should not be added to the theme header.
Currently, currency switcher notice is being shown to customers only once. Then geolocated currency becomes selected currency and notice isn't shown anymore due to existing logic. That might be confusing for customers if they moved out from the page too quickly or in case the customer didn't see it at first. It should be shown until the customer explicitly dismisses it.
- Open the shop on the incognito page.
- Observe the notice that currency was switched to a geolocated one.
- Reload the page with Ctrl+R / press Enter in the address bar / Close the page and open new.
- The notice should still show.
- Click Dismiss /
Use ... instead
and repeat instruction 3, now the notice shouldn't show up. - Repeat instructions 1-6 in non-incognito mode. If the notice does not show up, clean the cookie.
- Check the simulation flow under WooCommerce -> Settings -> Multi-Currency. That's Preview button near the Customers will be notified via store alert banner.
Fee breakdown of a transaction should not be displayed when only the base fee is applied. Also fee should be changed from "Fee" to "Base fee" when there's only a base fee. If there's more than the base fee, the breakdown should show as before.
- Make a purchase.
- Go to transaction details page.
- See fee breakdown with a single item.
- Ensure that fee title show up as "Base Fee" and a breakdown is not displayed
To test transactions with multiple fees
This flow should stay unchanged with the new changes.
-
Make a purchase with a different currency than store's currency
i. Set store currency to US
ii. Enable giropay and/or Sofort from Payments -> Settings -> Add Payment Method
iii. In checkout page as a buyer, change the currency to EUR and make a purchase
-
See that fee breakdown is still visible and fee label shows as "Fee"