Merge pull request #11741 from medusajs/docs/quote-management-guide

feat: add Quote Management guide
This commit is contained in:
Shahed Nasser
2025-03-11 11:21:47 +02:00
committed by GitHub
11 changed files with 4395 additions and 8 deletions
+1
View File
@@ -157,6 +157,7 @@ export default [
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-empty-object-type": "warn",
},
},
]
@@ -60,8 +60,8 @@ This guide will teach you how to:
<CardList items={[
{
href: "https://github.com/medusajs/examples/tree/main/custom-item-price",
title: "Custom Item Price Example Repository",
text: "Find the full code for this recipe example in this repository.",
title: "Custom Item Price Repository",
text: "Find the full code for this guide in this repository.",
icon: Github,
},
{
File diff suppressed because it is too large Load Diff
@@ -695,15 +695,15 @@ export const syncStep = createStep(
const sanityModule: SanityModuleService = container.resolve(SANITY_MODULE)
const query = container.resolve(ContainerRegistrationKeys.QUERY)
let total = 0
const total = 0
const upsertMap: {
before: any
after: any
}[] = []
const batchSize = 200
let hasMore = true
let offset = 0
const hasMore = true
const offset = 0
const filters = input.product_ids ? {
id: input.product_ids,
} : {}
+9 -2
View File
@@ -3142,7 +3142,7 @@ export const generatedEditDates = {
"references/product/interfaces/product.FilterableProductProps/page.mdx": "2025-02-24T10:48:41.629Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminBatchProductVariantRequest/page.mdx": "2024-12-09T13:21:34.309Z",
"references/types/WorkflowTypes/ProductWorkflow/interfaces/types.WorkflowTypes.ProductWorkflow.ExportProductsDTO/page.mdx": "2025-02-11T11:36:51.281Z",
"app/integrations/guides/sanity/page.mdx": "2025-02-05T09:10:44.478Z",
"app/integrations/guides/sanity/page.mdx": "2025-03-05T10:58:58.807Z",
"references/api_key/types/api_key.FindConfigOrder/page.mdx": "2024-11-25T17:49:28.715Z",
"references/auth/types/auth.FindConfigOrder/page.mdx": "2024-11-25T17:49:28.887Z",
"references/cart/types/cart.FindConfigOrder/page.mdx": "2024-11-25T17:49:29.455Z",
@@ -5896,7 +5896,7 @@ export const generatedEditDates = {
"app/commerce-modules/payment/account-holder/page.mdx": "2025-01-31T09:37:41.595Z",
"app/troubleshooting/test-errors/page.mdx": "2025-01-31T13:08:42.639Z",
"app/commerce-modules/product/variant-inventory/page.mdx": "2025-02-26T11:21:20.075Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-02-07T09:21:11.170Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-03-05T11:30:19.896Z",
"references/core_flows/Cart/Steps_Cart/functions/core_flows.Cart.Steps_Cart.validateShippingStep/page.mdx": "2025-02-11T11:36:39.235Z",
"references/core_flows/Cart/Steps_Cart/variables/core_flows.Cart.Steps_Cart.validateShippingStepId/page.mdx": "2025-02-11T11:36:39.228Z",
"references/core_flows/Payment_Collection/Steps_Payment_Collection/functions/core_flows.Payment_Collection.Steps_Payment_Collection.createPaymentAccountHolderStep/page.mdx": "2025-02-24T10:48:31.714Z",
@@ -6016,6 +6016,13 @@ export const generatedEditDates = {
"references/core_flows/types/core_flows.UpdateClaimShippingMethodValidationStepInput/page.mdx": "2025-02-24T10:48:33.354Z",
"references/core_flows/types/core_flows.UpdateExchangeAddItemValidationStepInput/page.mdx": "2025-03-04T13:33:46.851Z",
"references/core_flows/types/core_flows.UpdateExchangeShippingMethodValidationStepInput/page.mdx": "2025-02-24T10:48:33.582Z",
"references/core_flows/types/core_flows.UpdateOrderEditAddItemValidationStepInput/page.mdx": "2025-02-24T10:48:33.749Z",
"references/core_flows/types/core_flows.UpdateOrderEditItemQuantityValidationStepInput/page.mdx": "2025-02-24T10:48:33.763Z",
"references/core_flows/types/core_flows.UpdateReceiveItemReturnRequestValidationStepInput/page.mdx": "2025-02-24T10:48:34.009Z",
"references/core_flows/types/core_flows.UpdateRequestItemReturnValidationStepInput/page.mdx": "2025-02-24T10:48:34.028Z",
"references/core_flows/types/core_flows.UpdateReturnShippingMethodValidationStepInput/page.mdx": "2025-02-24T10:48:34.037Z",
"references/core_flows/types/core_flows.UpdateReturnValidationStepInput/page.mdx": "2025-02-24T10:48:34.046Z",
"app/examples/guides/quote-management/page.mdx": "2025-03-05T15:11:02.854Z",
"references/core_flows/types/core_flows.UpdateOrderEditAddItemValidationStepInput/page.mdx": "2025-03-04T13:33:47.035Z",
"references/core_flows/types/core_flows.UpdateOrderEditItemQuantityValidationStepInput/page.mdx": "2025-03-04T13:33:47.049Z",
"references/core_flows/types/core_flows.UpdateReceiveItemReturnRequestValidationStepInput/page.mdx": "2025-03-04T13:33:47.307Z",
+83 -1
View File
@@ -50,6 +50,33 @@ export const generatedSidebars = [
"title": "Integrations",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Server Examples",
"autogenerate_tags": "example+server",
"autogenerate_as_ref": true,
"sort_sidebar": "alphabetize",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Custom Item Price",
"path": "/examples/guides/custom-item-price",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Quote Management",
"path": "/examples/guides/quote-management",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
@@ -164,7 +191,33 @@ export const generatedSidebars = [
"children": []
}
]
},
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/recipes/b2b",
"title": "B2B",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/examples/guides/quote-management",
"title": "Example: Quote Management",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/recipes/commerce-automation",
"title": "Commerce Automation",
"children": [
{
"loaded": true,
"isPathHref": true,
@@ -1337,6 +1390,14 @@ export const generatedSidebars = [
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management",
"children": []
}
]
},
@@ -6191,6 +6252,27 @@ export const generatedSidebars = [
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Server Guides",
"autogenerate_tags": "server+order",
"initialOpen": false,
"autogenerate_as_ref": true,
"sort_sidebar": "alphabetize",
"description": "Learn how to use the Order Module in your customizations on the Medusa application server.",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
+12
View File
@@ -31,6 +31,18 @@ export const examplesSidebar = [
autogenerate_tags: "example+server",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
children: [
{
type: "link",
title: "Custom Item Price",
path: "/examples/guides/custom-item-price",
},
{
type: "link",
title: "Quote Management",
path: "/examples/guides/quote-management",
},
],
},
{
type: "category",
+19
View File
@@ -66,6 +66,25 @@ export const recipesSidebar = [
},
],
},
],
},
{
type: "link",
path: "/recipes/b2b",
title: "B2B",
children: [
{
type: "link",
path: "/examples/guides/quote-management",
title: "Example: Quote Management",
},
],
},
{
type: "link",
path: "/recipes/commerce-automation",
title: "Commerce Automation",
children: [
{
type: "link",
path: "/recipes/b2b",
+4
View File
@@ -3,6 +3,10 @@ export const cart = [
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
},
{
"title": "Create Cart Context in Storefront",
"path": "https://docs.medusajs.com/resources/storefront-development/cart/context"
+4
View File
@@ -35,6 +35,10 @@ export const order = [
"title": "Manage Return Reasons",
"path": "https://docs.medusajs.com/user-guide/settings/return-reasons"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
},
{
"title": "Checkout Step 5: Complete Cart",
"path": "https://docs.medusajs.com/resources/storefront-development/checkout/complete-cart"
+4
View File
@@ -10,5 +10,9 @@ export const server = [
{
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
}
]