Skip to content
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

Sales Channel Default Currency #103

Closed
BrentRobert opened this issue Jul 25, 2019 · 3 comments
Closed

Sales Channel Default Currency #103

BrentRobert opened this issue Jul 25, 2019 · 3 comments
Assignees

Comments

@BrentRobert
Copy link
Contributor

Hi,

When changing my default currency to USD in my headless sales channel, instead of Euro I still get Euro as default in the sales-channel API. While in the backend it did save as USD and shows as USD.

@Phil23
Copy link
Contributor

Phil23 commented Jul 30, 2019

Hey,

thank you for reporting an issue. I created an official ticket in our issue tracker. You can follow the issue here: https://issues.shopware.com/issues/NEXT-4310

Greetings,
Phil

@ssltg
Copy link
Contributor

ssltg commented Aug 20, 2019

Hi @BrentRobert,
can you give me a walkthrough for this Issue. Which sales-channel-api endpoint do you call? All my tests result in a change of the API-Answer to the new default currency.

@BrentRobert
Copy link
Contributor Author

Hi @ssltg, I change the default currency in the backend under the headless channel.
image

As a result I'm getting the following from the API:

{
    "total": 3,
    "data": [
        {
            "isoCode": "USD",
            "factor": 1.17085,
            "symbol": "$",
            "shortName": "USD",
            "name": "US-Dollar",
            "position": 1,
            "decimalPrecision": 2,
            "translations": null,
            "customFields": null,
            "promotionDiscountPrices": null,
            "isDefault": false,
            "_uniqueIdentifier": "3959fe3333a84d6d8407c8ba0189f457",
            "versionId": null,
            "translated": {
                "shortName": "USD",
                "name": "US-Dollar",
                "customFields": []
            },
            "createdAt": "2019-07-17T10:12:06+00:00",
            "updatedAt": null,
            "extensions": [],
            "id": "3959fe3333a84d6d8407c8ba0189f457"
        },
        {
            "isoCode": "EUR",
            "factor": 1,
            "symbol": "",
            "shortName": "EUR",
            "name": "Euro",
            "position": 1,
            "decimalPrecision": 2,
            "translations": null,
            "customFields": null,
            "promotionDiscountPrices": null,
            "isDefault": true,
            "_uniqueIdentifier": "b7d2554b0ce847cd82f3ac9bd1c0dfca",
            "versionId": null,
            "translated": {
                "shortName": "EUR",
                "name": "Euro",
                "customFields": []
            },
            "createdAt": "2019-07-17T10:12:06+00:00",
            "updatedAt": null,
            "extensions": [],
            "id": "b7d2554b0ce847cd82f3ac9bd1c0dfca"
        },
        {
            "isoCode": "GBP",
            "factor": 0.89157,
            "symbol": "£",
            "shortName": "GBP",
            "name": "Pound",
            "position": 1,
            "decimalPrecision": 2,
            "translations": null,
            "customFields": null,
            "promotionDiscountPrices": null,
            "isDefault": false,
            "_uniqueIdentifier": "df81c71630ed458b97d06f3ad3e95dbb",
            "versionId": null,
            "translated": {
                "shortName": "GBP",
                "name": "Pound",
                "customFields": []
            },
            "createdAt": "2019-07-17T10:12:06+00:00",
            "updatedAt": null,
            "extensions": [],
            "id": "df81c71630ed458b97d06f3ad3e95dbb"
        }
    ],
    "aggregations": []
}

I'm using /sales-channel-api/v1/currency endpoint with the sw-access-key of the appropriate sales channel. (Do note I'm on EA1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants