This PR includes documentation that preps for v2 docs (but doesn't introduce new docs). _Note: The number of file changes in the PR is due to find-and-replace within the `references` which is unavoidable. Let me know if I should move it to another PR._ ## Changes - Change Medusa version in base OAS used for v2. - Fix to docblock generator related to not catching all path parameters. - Added typedoc plugin that generates ER Diagrams, which will be used specifically for data model references in commerce modules. - Changed OAS tool to output references in `www/apps/api-reference/specs-v2` directory when the `--v2` option is used. - Added a version switcher to the API reference to switch between V1 and V2. This switcher is enabled by an environment variable, so it won't be visible/usable at the moment. - Upgraded docusaurus to v3.0.1 - Added new Vale rules to ensure correct spelling of Medusa Admin and module names. - Added new components to the `docs-ui` package that will be used in future documentation changes.
1.2 KiB
1.2 KiB
sidebar_position, description
| sidebar_position | description |
|---|---|
| 1 | Medusa Admin allows merchants to manage discounts. Merchants can create discounts and manage their conditions. |
Discounts Overview
In this document, you’ll get an overview of the customer listing page and everything you can do with it.
Overview
You can create discounts of different types in Medusa that customers use on checkout:
- Percentage Discounts to deduct a percentage of the total amount of an order.
- Fixed Discounts to deduct a fixed amount from the total amount of an order.
- Free Shipping to override the delivery amount of an order and make it free.
Discounts are in the form of a code that your customers can use. You can set options for a discount such as a start and an end date.
You can also specify conditions for discounts, such as applying them for specific products or shipping options.
View List of Discounts
You can view the list of available discounts in your ecommerce store by clicking on Discounts from the sidebar menu.
In the list, you can see discount details such as the code, description, amount, and status.