Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

[Shipping methods] Get list of available shipping methods for current cart #285

Closed
naydav opened this issue Dec 12, 2018 · 1 comment
Closed

Comments

@naydav
Copy link
Contributor

naydav commented Dec 12, 2018

Description (*)

Provide ability to retrieve available shipping rates for all cart shipping addresses.
Available methods are quite different objects from selected methods, given the selected methods are really just attributes of quote addresses.

Manual testing scenarios (*)

  1. Create empty cart and add shippable products
  2. Set shipping address and request available_shipping_methods
mutation {
  setShippingAddressesOnCart(
    input: {
      cart_id: "$maskedQuoteId"
      shipping_addresses: [
        {
          address: {
            firstname: "test firstname"
            lastname: "test lastname"
            company: "test company"
            street: ["test street 1", "test street 2"]
            city: "test city"
            region: "test region"
            postcode: "887766"
            country_code: "US"
            telephone: "88776655"
            save_in_address_book: false
          }
        }
      ]
    }
  ) {
    cart {
      addresses {
        firstname
        lastname
        company
        street
        city
        postcode
        telephone
        available_shipping_methods {
          amount
          available
          base_amount
          carrier_code
          carrier_title
          error_message
          method_code
          method_title
          price_excl_tax
          price_incl_tax
        }
      }
    }
  }
}
@naydav naydav added this to the Release: 2.3.1 milestone Dec 12, 2018
@naydav naydav self-assigned this Dec 12, 2018
@naydav naydav changed the title Get list of available shipping methods for current cart [Shipping methods] Get list of available shipping methods for current cart Dec 12, 2018
@naydav naydav modified the milestones: Release: 2.3.2, Release: 2.3.1 Dec 14, 2018
@naydav
Copy link
Contributor Author

naydav commented Feb 19, 2019

#339

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

No branches or pull requests

3 participants