wpdesk/wc-currency-switchers-integrations

1.2.0 2023-04-04 07:11 UTC

This package is auto-updated.

Last update: 2024-05-04 09:24:36 UTC


README

Latest Stable Version Total Downloads License

Currency Switchers Integrations

A WordPress library containing interfaces, abstracts and basic implementations to be used for currency switchers plugins and integrations.

Supported switchers

Requirements

PHP 7.0 or later.

Installation via Composer

In order to install the bindings via Composer run the following command:

composer require wpdesk/wp-currency-switchers-integrations

Example usage

Integrating the shipping method ( flexible_shipping ) with WooCommerce Multicurrency plugin:

new \WPDesk\WooCommerce\CurrencySwitchers\ShippingIntegrations( 'flexible_shipping' )

Prefixer

In scoper.inc.php file add WOOMC to the whitelist section:

    'whitelist' => [
    	'\WOOMC\*'
    ],