Woocommerce Tax rule by language version (or base shop address by language version)
Tax rules in Woocommerce can be linked to Geolocation, or to the customer’s address or to the base address of the store.
But I need to link the tax rule to the language version. Is there a snippet that would solve this? I only have two languages, so one solution would suit me:
- if the language is XX, then set the tax rule for country XX
- if the language is YY, then set the tax rule for country YY
- if the language is XX, then set the woocommerce_default_country to XX
- if the language is YY, then set the woocommerce_default_country to YY
Is it even possible?