Function: useQuickOrder()
useQuickOrder(
options):UseQuickOrderReturn
Defined in: composables/react/useQuickOrder.ts:185
useQuickOrder — product-code resolution + bulk add-to-cart.
Parameters
options
Returns
Remarks
GraphQL integration: services are built per-call via createServices(graphqlClient).
searchProducts calls services.category.getCategory() over
configuration.baseCategoryId — the same path ProductGrid and the SearchBar
preview use. The flat products resolver ignores orderlist scoping
server-side, so searching through it returns products outside the user's
catalogue. Without a baseCategoryId the search returns nothing rather than
falling back to that resolver.
submit resolves a cart with the shared initCart flow, then calls
services.cart.bulkUpdateCartItems() once with every line (CartItemBulk).
All calls require an authenticated session.