Select tax class with Xpath (Woocommerce)
-
There’s an option to set the tax class with xpath, see https://i.imgur.com/M46G3yU.png
The correct values are either ‘standard’ or ‘reduced-tax’.The CSV feed contains a field named ‘mwst’ with the value ’31’ or ’32’.
Now when the value in the CSV is 31 I need the tax class to be set to standard and when the value is 32 it needs to be reduced-tax.
How can I do this with Xpath? It would be easy for me to achieve this with a custom function which returns the correct string, but with Xpath I’m stuck.
Thanks
PS: Btw I have the paid version (ultimate pro package) but I’m posting it here so others can find the solution in the future. There’s literally no examples or solutions on the web and in your documentation regarding advanced Xpath settings ??
- The topic ‘Select tax class with Xpath (Woocommerce)’ is closed to new replies.