Skip to content

PROMO code apply on the shipping showing null in graphql responce #35545

@Abhay-Agrawal

Description

@Abhay-Agrawal

As a ___ I want to ___ so that ___.

Steps to reproduce:

  1. Navigate to Marketing Menu-> Promotions -> Cart Price Rule

  2. Add the New Rule

  3. Add the One Rule and apply it on shipping Amount. Plz check the attached screenshot to add shipping rule
    Screenshot (1)

  4. apply the same PROMO code on the shipping amount

  5. check the graphql response

  6. showing discounts null
    "discounts": null,
    "discount": {
    "label": [
    "FreeShip"
    ],
    "amount": {
    "value": -15
    }
    },
    or
    Run cart graphql query:
    {
    cart(cart_id: "croja3eQTvZe2OI26BoMyN94N9B2z3Fd") {
    email
    items {
    uid
    prices {
    total_item_discount {
    value
    }
    price {
    value
    }
    discounts {
    label
    amount {
    value
    }
    }
    }
    product {
    name
    sku
    }
    quantity
    }
    applied_coupons {
    code
    }
    prices {
    discounts {
    amount {
    value
    }
    label
    }
    grand_total {
    value
    }
    }
    }
    }

    Expected result:
    All Graphql requests having discount field should return correct discount value in response

Additional Information:
Please refer the comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions