Giter VIP home page Giter VIP logo

Comments (3)

Phil23 avatar Phil23 commented on May 23, 2024

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

from shopware.

ssltg avatar ssltg commented on May 23, 2024

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.

from shopware.

BrentRobert avatar BrentRobert commented on May 23, 2024

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)

from shopware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.