docs: update and improve marketplace recipe (#11870)
* docs: update and improve marketplace recipe * fix vale error * small fixes
This commit is contained in:
@@ -305,7 +305,7 @@ Learn more about module links in [this documentation](!docs!/learn/fundamentals/
|
||||
|
||||
</Note>
|
||||
|
||||
To create a link, create the file `src/links/restock-variant.ts` with the following content:
|
||||
To define a link, create the file `src/links/restock-variant.ts` with the following content:
|
||||
|
||||

|
||||
|
||||
@@ -329,7 +329,7 @@ export default defineLink(
|
||||
You define a link using `defineLink` from the Modules SDK. It accepts three parameters:
|
||||
|
||||
1. The first data model part of the link, which is the Restock Module's `restockSubscription` data model. A module has a special `linkable` property that contain link configurations for its data models. You also specify the field that points to the product variant.
|
||||
1. The second data model part of the link, which is the Product Module's `productVariant` data model.
|
||||
2. The second data model part of the link, which is the Product Module's `productVariant` data model.
|
||||
3. An object of configurations for the module link. By default, Medusa creates a table in the database to represent the link you define. However, in this guide, you only want this link to retrieve the variants associated with a subscription. So, you enable `readOnly` telling Medusa not to create a table for this link.
|
||||
|
||||
In the next steps, you'll see how this link allows you to retrieve product variants' details when retrieving restock subscriptions.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -114,7 +114,7 @@ export const generatedEditDates = {
|
||||
"app/recipes/digital-products/examples/standard/page.mdx": "2025-02-13T15:24:15.868Z",
|
||||
"app/recipes/digital-products/page.mdx": "2025-02-26T12:37:12.721Z",
|
||||
"app/recipes/ecommerce/page.mdx": "2025-02-26T12:20:52.092Z",
|
||||
"app/recipes/marketplace/examples/vendors/page.mdx": "2025-02-20T07:20:47.970Z",
|
||||
"app/recipes/marketplace/examples/vendors/page.mdx": "2025-03-17T10:10:58.268Z",
|
||||
"app/recipes/marketplace/page.mdx": "2024-10-03T13:07:44.153Z",
|
||||
"app/recipes/multi-region-store/page.mdx": "2025-02-26T12:38:50.292Z",
|
||||
"app/recipes/omnichannel/page.mdx": "2025-02-26T12:22:08.331Z",
|
||||
@@ -5577,7 +5577,7 @@ export const generatedEditDates = {
|
||||
"references/modules/sales_channel_models/page.mdx": "2024-12-10T14:55:13.205Z",
|
||||
"references/types/DmlTypes/types/types.DmlTypes.KnownDataTypes/page.mdx": "2024-12-17T16:57:19.922Z",
|
||||
"references/types/DmlTypes/types/types.DmlTypes.RelationshipTypes/page.mdx": "2024-12-10T14:54:55.435Z",
|
||||
"app/recipes/commerce-automation/restock-notification/page.mdx": "2025-02-11T13:29:56.235Z",
|
||||
"app/recipes/commerce-automation/restock-notification/page.mdx": "2025-03-17T07:36:21.511Z",
|
||||
"app/troubleshooting/workflow-errors/page.mdx": "2024-12-11T08:44:36.598Z",
|
||||
"app/integrations/guides/shipstation/page.mdx": "2025-02-26T11:21:46.879Z",
|
||||
"app/nextjs-starter/guides/customize-stripe/page.mdx": "2024-12-25T14:48:55.877Z",
|
||||
|
||||
@@ -11139,6 +11139,14 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
|
||||
"title": "Get Variant Prices",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
"isPathHref": true,
|
||||
"type": "ref",
|
||||
"title": "Implement Product Reviews in Medusa",
|
||||
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user