Woocommerce Tax rule by language version (or base shop address by language version)

Question

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:

solution 1)

  • 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

or
solution 2)

  • 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?

0
Vitezslav 1 month 2021-09-17T14:56:23-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse