diff --git a/docs/content/modules/carts-and-checkout/storefront/implement-checkout-flow.mdx b/docs/content/modules/carts-and-checkout/storefront/implement-checkout-flow.mdx index 46ecb22f7d..fd14808a33 100644 --- a/docs/content/modules/carts-and-checkout/storefront/implement-checkout-flow.mdx +++ b/docs/content/modules/carts-and-checkout/storefront/implement-checkout-flow.mdx @@ -48,7 +48,7 @@ It's also assumed you already have [used CartProvider higher in your component t ### Previous Steps -This document assumes you’ve already taken care of the add-to-cart flow. So, you should have a [cart created](/api/store/#tag/Cart/operation/PostCart) for the customer with at least [one product in it](/api/store/#tag/Cart/operation/PostCartsCartLineItems). +This document assumes you’ve already taken care of the add-to-cart flow. So, you should have a [cart created](./implement-cart.mdx#create-a-cart) and [associated with a logged-in or guest customer](./implement-cart.mdx#associate-a-logged-in-customer-with-the-cart). The cart should also have at least [one product in it](/api/store/#tag/Cart/operation/PostCartsCartLineItems). You can learn how to implement the cart flow using [this documentation](./implement-cart.mdx). @@ -88,7 +88,7 @@ medusa.carts.update(cartId, { -```ts +```tsx import { useCart } from "medusa-react" const Cart = () => { @@ -180,7 +180,6 @@ medusa.shippingOptions.listCartOptions(cartId) ```tsx -import { ShippingOption } from "@medusajs/medusa" import { useCartShippingOptions } from "medusa-react" type Props = { @@ -200,7 +199,7 @@ const ShippingOptions = ({ cartId }: Props) => { {shipping_options && (