docs: update stale information (#4790)

This commit is contained in:
Shahed Nasser
2023-08-17 14:19:51 +03:00
committed by GitHub
parent b08337deb7
commit 26c78bbc03
19 changed files with 181 additions and 136 deletions
@@ -88,6 +88,10 @@ To delete a condition you already added to the discount:
1. Click on the <UiIcon lightIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999308/Medusa%20Docs/UI%20Icons/1ordBC6_ssysel.png" darkIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999326/Medusa%20Docs/UI%20Icons/dSwWYBH_stzgoi.png" alt="three dots" /> icon next to the condition.
2. Click on “Delete condition” from the dropdown.
### Metadata
Under the Metadata section, you can attach custom data to the discount as key-value pairs. This is mostly useful for developers and technical teams.
### Save Discount
After filling out previous sections, you can save the discount by either clicking the “Save as draft” or “Publish discount” buttons.
@@ -19,6 +19,8 @@ To view a discounts details:
This opens the discounts details page.
---
## Edit a Discount
### Change Discount Status
@@ -42,8 +44,8 @@ To edit a discounts general information:
1. Go to the discount details page.
2. Click on the <UiIcon lightIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999308/Medusa%20Docs/UI%20Icons/1ordBC6_ssysel.png" darkIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999326/Medusa%20Docs/UI%20Icons/dSwWYBH_stzgoi.png" alt="three dots" /> icon at the top right of the first section.
3. Click on “Edit general information” from the dropdown.
4. In the new window, you can edit any of the discount information.
5. Once done, click on the Save button.
4. In the pop-up, you can edit any of the discount information.
5. Once done, click on the "Save and close" button.
---
@@ -56,7 +58,7 @@ To edit a discounts configuration:
1. Go to the discount details page.
2. Click on the <UiIcon lightIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999308/Medusa%20Docs/UI%20Icons/1ordBC6_ssysel.png" darkIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999326/Medusa%20Docs/UI%20Icons/dSwWYBH_stzgoi.png" alt="three dots" /> icon at the top right of the Configurations section.
3. Click on “Edit configurations” from the dropdown.
4. In the new window, you can edit any of the configurations.
4. In the pop-up, you can edit any of the configurations.
5. Once done, click on the Save button.
### Delete Configurations
@@ -77,7 +79,7 @@ To delete a configuration:
:::info
You can use a condition type for only one condition. After using a condition type, you will not be able to use it again for another condition. You must edit the condition that you added before of that type if you need to make any changes.
You can use a condition type for only one condition. After using a condition type, you will not be able to use it again for another condition. You must [edit the condition](#edit-a-condition) that you added before of that type if you need to make any changes.
:::
@@ -86,7 +88,7 @@ To add a condition to a discount:
1. Go to the discount details page.
2. In the Conditions section, click on the <UiIcon lightIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999308/Medusa%20Docs/UI%20Icons/1ordBC6_ssysel.png" darkIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999326/Medusa%20Docs/UI%20Icons/dSwWYBH_stzgoi.png" alt="three dots" /> icon.
3. Click on “Add condition” from the dropdown.
4. Click on the condition type.
4. In the pop-up, find the condition type from the list of conditions and click on it.
5. In the new list that opens:
1. Choose at the top either “In” or “Not In,” where “In” indicates that the discount can be applied to the items selected in this list, and “Not In” indicates that the discount can be applied to all items except those selected in this list.
2. Select the items from the list.
@@ -99,7 +101,7 @@ To edit a discounts condition:
1. Go to the discount details page.
2. In the Conditions section, click on the <UiIcon lightIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999308/Medusa%20Docs/UI%20Icons/1ordBC6_ssysel.png" darkIcon="https://res.cloudinary.com/dza7lstvk/image/upload/v1667999326/Medusa%20Docs/UI%20Icons/dSwWYBH_stzgoi.png" alt="three dots" /> icon next to the condition you want to edit.
3. Click on “Edit condition” from the dropdown.
4. In the new window that opens:
4. In the pop-up that opens:
1. To add new items to the list:
1. Click on the Add button at the top right.
2. Choose the items you want to add.