Skip to content

Release testing instructions for WC Payments 3.2.0

Oleksandr Aratovskyi edited this page Oct 7, 2021 · 14 revisions

Prevent currency switcher to show when enabled currencies list is empty

Expected outcome

The currency switcher widget should be shown when WCPay is not set up or there is only one store currency enabled.

Testing instructions

  1. Create a new JN site.
  2. Install the WooCommerce plugin from the branch.
  3. Set the development mode with the Code Snippets plugin https://docs.woocommerce.com/document/payments/testing/dev-mode/#section-2.
  4. Install the Organic Goodness theme p1632844372035200/1631896155.144900-slack-C01B8KNUYSW.
  5. 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 } ?>
  1. Observe that no currency switcher widget is added (before WC Payments onboarding is passed and MC is set up).
  2. Pass WC Payments onboarding and enable Multi-Currency (add at least one currency except store currency).
  3. Observe that currency switcher widget is now added.
  4. Remove all the currencies except store currency. Switcher widget should not be added to the theme header.

Show currency switcher notice until customer explicitly dismisses it

Expected outcome

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.

Testing instructions

  1. Open the shop on the incognito page.
  2. Observe the notice that currency was switched to a geolocated one.
  3. Reload the page with Ctrl+R / press Enter in the address bar / Close the page and open new.
  4. The notice should still show.
  5. Click Dismiss / Use ... instead and repeat instruction 3, now the notice shouldn't show up.
  6. Repeat instructions 1-6 in non-incognito mode. If the notice does not show up, clean the cookie.
  7. Check the simulation flow under WooCommerce -> Settings -> Multi-Currency. That's Preview button near the Customers will be notified via store alert banner.
Clone this wiki locally