> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aftersell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 管理 checkout 折扣

> 了解如何在 Aftersell 中查看、编辑和删除为 checkout upsell 创建的折扣

Aftersell 中的折扣库让你可以管理为 checkout upsell 创建的所有折扣。你可以查看每个折扣被哪些 upsell 使用、编辑折扣详情，以及删除未使用的折扣。

<div id="accessing-the-discount-library">
  ## 访问折扣库
</div>

要访问你的折扣库：

1. 在 Shopify 后台中打开 **Aftersell** 应用
2. 前往 **Checkout** > **Discounts**

折扣库会显示你通过 Aftersell 创建的所有折扣。这些折扣也会在你的 Shopify 折扣页面上的“Aftersell Discounts”下显示。

<div id="understanding-discount-status">
  ## 了解折扣状态
</div>

Checkout 折扣页面右上角会显示一个状态徽章，反映你的 Aftersell checkout 折扣码在 Shopify 上是否处于激活状态。这是页面级别的状态，而非针对单个折扣的状态：

* **Active on Shopify**（在 Shopify 上激活）- 折扣处于激活状态且工作正常
* **Inactive on Shopify**（在 Shopify 上未激活）- 折扣可能在你的 Shopify 折扣页面上缺失或已被停用

如果折扣显示为未激活，请检查你的 Shopify 后台 > Discounts 页面，确认该折扣存在且处于激活状态。

<div id="editing-a-discount">
  ## 编辑折扣
</div>

要编辑现有折扣：

1. 在列表中点击你想编辑的折扣
2. 折扣详情会显示在右侧面板中
3. 修改**标题**、**折扣类型**（百分比或固定金额）或**金额**
4. 点击 **Update** 以应用你的更改

⚠️ 更改会应用于所有使用此折扣的 upsell。“Used in”部分会显示当前有哪些 widget 和商品在使用该折扣。

<div id="deleting-a-single-discount">
  ## 删除单个折扣
</div>

要删除折扣：

1. 点击你想删除的折扣
2. 点击右侧面板中的 **Delete** 按钮
3. 在弹窗中确认删除

该折扣会从所有使用它的 upsell 中移除。此操作无法撤销。

<div id="bulk-deleting-unused-discounts">
  ## 批量删除未使用的折扣
</div>

如果你有当前未被任何 upsell 使用的折扣，可以一次性将其全部删除：

1. 在折扣库中，找到 **Delete X unused discount(s)** 按钮
2. 点击该按钮以查看所有未使用折扣的列表
3. 在确认弹窗中检查列表
4. 点击 **Delete X discount(s)** 以确认

此功能仅在你有未使用的折扣时才会显示。系统会自动识别哪些折扣未被应用到任何 upsell 优惠中。

<div id="searching-discounts">
  ## 搜索折扣
</div>

使用折扣库顶部的搜索栏按名称查找折扣。搜索匹配的是显示的规则名称，即标题加上优惠金额——例如“Summer add-on (15% off)”。Checkout 折扣规则本身没有折扣码，因此无法按折扣码搜索。

<div id="creating-new-discounts">
  ## 创建新折扣
</div>

折扣是在 Checkout 编辑器中将其添加到 upsell 优惠时创建的。你无法在折扣库中创建独立的折扣。

要创建新折扣：

1. 前往 **Checkout** > **Editor**
2. 编辑或创建一个 upsell widget
3. 在配置优惠时点击 **Add discount**
4. 选择 **Create new** 并设置标题和金额

新折扣会出现在你的折扣库中，之后在添加折扣时选择 **Pick existing** 即可在其他 upsell 中复用。

<div id="related-articles">
  ## 相关文章
</div>

* [Checkout widget 类型](/zh/aftersell/checkout_widget_types) - 了解如何为 upsell widget 添加折扣
* [创建你的第一个 checkout widget](/zh/aftersell/creating_your_first_checkout_widget) - 创建 checkout widget 的分步指南
