-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 3.2.0
Oleksandr Aratovskyi edited this page Oct 7, 2021
·
14 revisions
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.