diff --git a/packages/api-client/src/api/addProductsToCart/addProductsToCart.ts b/packages/api-client/src/api/addProductsToCart/addProductsToCart.ts index 00b4f46ba..60e2d1c24 100644 --- a/packages/api-client/src/api/addProductsToCart/addProductsToCart.ts +++ b/packages/api-client/src/api/addProductsToCart/addProductsToCart.ts @@ -185,6 +185,10 @@ export default gql` } } } + user_errors { + code + message + } } } `; diff --git a/packages/api-client/src/types/API.ts b/packages/api-client/src/types/API.ts index a01a1f4dd..63db0e68d 100644 --- a/packages/api-client/src/types/API.ts +++ b/packages/api-client/src/types/API.ts @@ -3,13 +3,9 @@ import { DocumentNode, ExecutionResult } from 'graphql'; import { CustomQuery } from '@vue-storefront/core'; import { AddConfigurableProductsToCartInput, - AddConfigurableProductsToCartMutation, AddSimpleProductsToCartInput, - AddSimpleProductsToCartMutation, AddDownloadableProductsToCartInput, - AddDownloadableProductsToCartMutation, AddVirtualProductsToCartInput, - AddVirtualProductsToCartMutation, AppliedCoupon, ApplyCouponToCartInput, ApplyCouponToCartMutation, @@ -95,11 +91,9 @@ import { RemoveProductsFromWishlistMutationVariables, RemoveProductsFromWishlistMutation, GetCustomerAddressesQuery, - AddProductsToCartMutation, CmsBlockQuery, GroupedProduct, AddBundleProductsToCartInput, - AddBundleProductsToCartMutation, RequestPasswordResetEmailMutation, RequestPasswordResetEmailMutationVariables, ResetPasswordMutationVariables, @@ -107,7 +101,12 @@ import { ChangeCustomerPasswordMutation, CreateCustomerAddressMutation, DownloadableProduct, - VirtualProduct, CustomerOrdersFilterInput, RoutableInterface, + VirtualProduct, + CustomerOrdersFilterInput, + RoutableInterface, + AddProductsToCartOutput, + AddConfigurableProductsToCartMutation, + AddBundleProductsToCartMutation, AddSimpleProductsToCartMutation, AddDownloadableProductsToCartMutation, AddVirtualProductsToCartMutation, } from './GraphQL'; import { SetPaymentMethodOnCartInputs } from '../api/setPaymentMethodOnCart'; import { CustomerProductReviewParams } from '../api/customerProductReview'; @@ -179,7 +178,7 @@ export interface MagentoApiMethods { addProductsToCart( input: AddProductsToCartInput, customQuery?: CustomQuery - ): Promise>; + ): Promise>; addProductToWishList( input: AddProductsToWishlistMutationVariables, diff --git a/packages/theme/modules/catalog/product/components/product-types/bundle/BundleProductSelector.vue b/packages/theme/modules/catalog/product/components/product-types/bundle/BundleProductSelector.vue index 1af5ef4eb..dee0e8aa2 100644 --- a/packages/theme/modules/catalog/product/components/product-types/bundle/BundleProductSelector.vue +++ b/packages/theme/modules/catalog/product/components/product-types/bundle/BundleProductSelector.vue @@ -73,6 +73,12 @@ > Add to Cart +