-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store: REST API endpoints don't return prices in the correct currency when locale
parameter is available in the request
#3518
Comments
locale
parameter is in the request locale
parameter is available in the request
14Apr16 Bug Scrub Confirmed this is still an issue. |
locale
parameter is available in the request locale
parameter is available in the request
@scruffian what do you think about this one? I'm not sure we would want to use the locale to determine currency. You could be in the US using dollars, but prefer to manage your site in a different language. Is there a separate site setting we use to determine the correct currency? |
@scruffian If you think this requires active development, can you put this into the appropriate milestone? |
I agree, we shouldn't base prices on locale - it should be a user setting. I'm going to defer to @peterbutler on this one, since this is more his area... |
Removed priority label since no activity from May 2016 until now. |
#bug-scrub There hasn't been any activity on this thread in 7 months. Is this still a change worth pursuing or should we close it? @peterbutler you were the last one pinged here, what are your thoughts? |
I think we should close it. |
The call to the
Plans
endpoint available here https://public-api.wordpress.com/rest/v1.2/plans/?pretty=true&locale=it doesn't take in consideration the parameter locale when outputting thecost
,formatted_price
, andprice
fields in the response. It always uses a "default" currency (GBP).Example response:
The price is specified in GBP, and not in EUR.
Same problem on the call to the REST Endpoint that returns available Plans for a single site
https://public-api.wordpress.com/rest/v1/sites/$siteID/plans?locale=it
This time prices are returned in US Dollars.
The text was updated successfully, but these errors were encountered: