vtex-apps / store-graphql

GraphQL schema and resolvers for the VTEX Commerce Stores API
78 stars 45 forks source link

Add: Flag to Change Seller from the Simulation #656

Closed beatrizmaselli closed 1 year ago

beatrizmaselli commented 1 year ago

What problem is this solving?

Tier 1 client with problems to show the correct selling Price using promotions associated with a specific seller whitelabel.

Simulation at the checkout with the seller:

curl --location 'https://casinofrqa.myvtex.com/api/checkout/pub/orderForms/simulation' \
--header 'Content-Type: application/json' \
--header 'Cookie: checkout.vtex.com=__ofid=ee049fa31c0c4ca589528c3db0fe035f' \
--data '{
    "items": [
        {
            "id": "68036",
            "quantity": 1,
            "seller": "casinofrqa79322"
        }
    ],
    "country": "FRA"
}'

SellingPrice: 47,07 Simulation done by the store-graphql:

curl --location 'https://casinofrqa.myvtex.com/api/checkout/pub/orderForms/simulation' \
--header 'Content-Type: application/json' \
--header 'Cookie: checkout.vtex.com=__ofid=ee049fa31c0c4ca589528c3db0fe035f' \
--data '{
    "items": [
        {
            "id": "68036",
            "quantity": 1,
            "seller": "1"
        }
    ],
        "shippingData": {
        "logisticsInfo": [
            {
                "itemIndex": 0,
                "regionId": "U1cjY2FzaW5vZnJxYTc5MzIy"
            }
        ],
    "country": "FRA"
}'

SellingPrice: 48,07

Screenshots or example usage:

Item at the list: image image

Item outside the list: image image

Describe alternatives you've considered, if any.

Adjust this at the simulation since this promotion should be considered at the context of the seller 1 also.

vtex-io-ci-cd[bot] commented 1 year ago

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

beatrizmaselli commented 1 year ago

@gvc awesome feedback! Can you check if the names are more in line with the feature, please?

vtex-io-ci-cd[bot] commented 1 year ago

Your PR has been merged! App is being published. :rocket: Version 2.168.0-hkignore.2 → 2.168.0

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.store-graphql@2.168.0

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: