woocommerce offtopic – REST API return 404 when using default language code

Question

I use fluxstore with my woocommerce multilingual store.

when the application send a REST POST request to get shipping methods or payment methods it works fine, but when I add ?lang=ar (which is the default language code), it returns 404.

to make my question clear here is the following examples:

/wp-json/api/flutter_woo/payment_methods = returns payment methods in Arabic (default language)

/wp-json/api/flutter_woo/payment_methods?lang=anythingrandom = returns payment methods in Arabic (default language)

/wp-json/api/flutter_woo/payment_methods?lang=en = returns payment methods in English

/wp-json/api/flutter_woo/payment_methods?lang=ar = returns 404

0
mo999dev 2 weeks 2022-08-01T14:37:26-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse