docs: edits and fixes to commerce module docs (#7468)

Apply edits and fixes to the commerce modules docs
This commit is contained in:
Shahed Nasser
2024-05-29 11:08:06 +00:00
committed by GitHub
parent 130de74d6d
commit 2c5ba408d4
160 changed files with 6400 additions and 3790 deletions
@@ -14,7 +14,7 @@ In this document, you'll learn about the options of the Fulfillment Module.
## providers
The `providers` option is an array of either fulfillment provider modules, fulfillment plugins, or path to a file that holds a fulfillment provider.
The `providers` option is an array of fulfillment provider modules.
When the Medusa application starts, these providers are registered and can be used to process fulfillments.
@@ -29,6 +29,13 @@ const modules = {
providers: [
{
resolve: `@medusajs/fulfillment-manual`,
options: {
config: {
manual: {
// provider options...
}
}
}
},
],
},
@@ -38,5 +45,6 @@ const modules = {
The `providers` option is an array of objects that accept the following properties:
- `resolve`: A string indicating the package name of the fulfillment provider module or the fulfillment plugin, or the path to the file defining the fulfillment provider.
- `options`: An optional object of options to pass to the fulfillment provider.
- `resolve`: A string indicating either the package name of the fulfillment provider module or the path to it.
- `options`: An optional object of the fulfillment provider module's options. The object must have the following property:
- `config`: An object whose key is the ID of the fulfillment provider, and its value is an object of options to pass to the provider module.