khromov / polylang-woocommerce-multi-currency

Add multi-currency support when using Polylang for WooCommerce
22 stars 8 forks source link

Correct currency when using “Show all languages” #2

Closed bjornjohansen closed 7 years ago

bjornjohansen commented 7 years ago

When “Show all languages” is selected, e.g. on the product listing page, pll_current_language() returns false, but we can still get the language for the current post, by falling back to pll_get_post_language().

khromov commented 7 years ago

Very nice, thanks for the PR!

khromov commented 3 years ago

Hey @alis1706

The code in this PR is merged already.

I assume you want to install this plugin?

To do so: