You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the wc-api to get general settings /wc/v2/settings/general, the woocommerce_currency object has an options array that has the following format:
{AED: "United Arab Emirates dirham (د.إ)"}
This results in having to use a regex to separate the country and currency name from the currency symbol.
I propose that the options object should take this format:
When using the wc-api to get general settings
/wc/v2/settings/general
, thewoocommerce_currency
object has an options array that has the following format:{AED: "United Arab Emirates dirham (د.إ)"}
This results in having to use a regex to separate the country and currency name from the currency symbol.
I propose that the options object should take this format:
{ AED: { country: "United Arab Emirates", currency: "dirham", symbol: "د.إ" } }
The text was updated successfully, but these errors were encountered: