> ## 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.

# 折扣码模块

> 本文介绍如何在 Upcart 中为客户添加手动输入折扣码的选项。

折扣码模块会向你的购物车添加一个折扣码输入框，允许客户手动输入折扣码并将其应用到订单。

<div id="discount-input-placeholder">
  # 折扣输入占位符
</div>

这是客户输入之前显示在折扣码输入框中的文本。通常用于让客户了解此文本框的用途。

<img src="https://mintcdn.com/aftersell/uxKAdY-e0h16xa48/images/upcart/discount-codes-code-entry-field-placeholder.png?fit=max&auto=format&n=uxKAdY-e0h16xa48&q=85&s=ad77657edd133bf94332ebae9848717e" alt="折扣码输入框中占位符文本突出显示，旁边是 Apply 按钮" width="411" height="60" data-path="images/upcart/discount-codes-code-entry-field-placeholder.png" />

<div id="discount-apply-button-text">
  # 折扣应用按钮文本
</div>

这是显示在折扣码旁按钮上的文本。

<img src="https://mintcdn.com/aftersell/uxKAdY-e0h16xa48/images/upcart/discount-codes-code-field-apply-button.png?fit=max&auto=format&n=uxKAdY-e0h16xa48&q=85&s=18d9e6b44ecf9e9fc0e37d911a5eb065" alt="折扣码输入框中 Apply 按钮突出显示" width="411" height="60" data-path="images/upcart/discount-codes-code-field-apply-button.png" />

***

<div id="discount-limitations">
  ## **🚧 折扣限制**
</div>

Upcart 无法支持 checkout 中提供的所有折扣功能。

* **不支持多个折扣码。**\
  可以同时使用多个自动折扣，但只能有一个手动折扣码。客户必须前往 checkout 才能应用多个手动折扣码。
* **不支持免运费折扣。**\
  客户必须前往 checkout 才能应用免运费折扣。
* **不支持使用 checkout.liquid 的 Shopify Plus 商店。**\
  支持使用 checkout extensibility 的 Shopify Plus 商店。如果你的商店使用 checkout.liquid，折扣码模块将在实际店面上被隐藏。

请务必确认这些限制是否适用于你的商店。

这与模块内 **Discount limitations** 横幅（位于 **Show more** 之后）中显示的三条限制相同。

***

<div id="custom-templates">
  # 自定义模板
</div>

在折扣码模块 2.0 版本中，设置下方会出现一个 **Custom template** 代码编辑器，包含两个模板：**Full**（整个模块）和 **Skeleton**（模块加载时渲染的内容）。请先在 Cart Editor 的 **Settings > Cart settings > Advanced Settings** 下勾选 **Access custom templates**。参见[在 Upcart 中设置自定义模板](/zh/upcart/setting_up_a_custom_template_in_upcart)。
