> ## 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 x Globo Product Options, Variant

> 本文介绍如何将 Globo Product Options and Variant 与 Upcart 集成，以确保两款应用顺畅协同工作。

<div id="overview">
  ## 概述
</div>

在大多数主题中，像 Globo 这样的第三方应用会使用自定义函数修改默认的 **Add to Cart** 按钮。这可能导致 Upcart 无法正常触发，从而出现购物车重定向或抽屉不弹出的情况。

***

<div id="how-to-fix">
  ## 解决方法
</div>

按照以下步骤在 Upcart 和 Globo 中分别调整设置：

1. 在 **Upcart** 应用中，前往 **Cart Editor > Settings > Cart settings**，然后展开 **Advanced Settings**。
2. 启用 **Enhanced Ajax API Compatibility** 选项。

此设置可提升与使用自定义加入购物车操作的应用的兼容性。如果未启用，顾客可能会被重定向到商店的默认购物车页面，而不会看到 Upcart 抽屉。

接下来，更新你的 Globo 设置：

1. 打开 **Globo Product Options** 应用。
2. 找到并禁用以下选项：

   **“Redirect to the shopping cart page after adding a product.”**

禁用此选项可确保产品加入购物车后 Upcart 抽屉能正确打开。

***

<div id="why-this-happens">
  ## 出现此问题的原因
</div>

Globo Product Options 会用自定义脚本替换 Shopify 默认的 **Add to Cart** 流程。发生这种情况时，除非启用了 **Enhanced Ajax API Compatibility**，否则 Upcart 无法检测到购物车的更新。

开启此设置后，Upcart 就能识别自定义的加入购物车操作，并防止不必要地重定向到默认购物车页面。
