Skip to content

Commit

Permalink
Merge pull request #94 from EriSilver/AddShippingAddressToCartData
Browse files Browse the repository at this point in the history
Added shipping_address to cartData (GetCartForCustomer)
  • Loading branch information
carinadues authored Apr 13, 2022
2 parents 0d5c276 + c24eb71 commit c86e960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Model/Resolver/GetCartForCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public function resolve(
'shipping_amount' => $shipping_amount,
'shipping_incl_tax' => $shipping_incl_tax,
'shipping_method' => $shipping_method,
'shipping_address' => $cart->getShippingAddress(),
'is_in_store_pickup_available' => $isInStorePickupAvailable
]
);
Expand Down
3 changes: 3 additions & 0 deletions src/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ type PaymentMethod {
}

interface TotalsObject @typeResolver(class: "\\ScandiPWA\\QuoteGraphQl\\Model\\Resolver\\TotalsObject") {
shipping_address: OrderCustomerAddress
applied_rule_ids: String
items_count: Int
customer_is_guest: Boolean
Expand Down Expand Up @@ -352,6 +353,8 @@ type OrderCustomerAddress {
organizationaddress: String
organizationiic: String
organizationbik: String
vat_id: String
email: String
}

interface ProductInterface {
Expand Down

0 comments on commit c86e960

Please sign in to comment.