Skip to content Skip to sidebar

Resolved

Resolved in: WooCommerce Multilingual & Multicurrency 5.5.2

Topic Tags: WCML

Overview of the issue

If you create a custom currency switcher according to our documentation (https://wpml.org/documentation/related-projects/woocommerce-multilingual/designing-custom-currency-switchers-using-template-files/) when using WCML 5.5.x the new switcher will not be recognised and rendered as intended.

Workaround

WCML 5.5.0 deprecated support for twig templates, but the scan of custom template files wrongly expects to find a template.twig file.

The simplest workaround for this issue is to create an empty text file and save it as “template.twig” in the same folder you save your config.json and template.php files.

Note that the available currency switchers are cached. For your new switcher to be recognised you would need to switch theme and back again or deactivate and reactivate WCML.