Skip to content

Ask the docs

Answers come from this documentation only, with sources. For account-specific issues, the docs route you to the right owner.

What can I help you find?

You are chatting with an AI assistant. It can make mistakes, so double-check important information.

Configure the cart button

The assistant shows a “View cart” button (in the chat header and its options menu). By default it redirects to /cart, the standard Shopify cart. If your cart lives at another URL, or opens as a drawer with no dedicated page, configure the redirect from the dashboard. No widget-side code needed.

In the Dialog dashboard: Assistant settings → Assistant tab → Cart page URL.

The widget resolves the value against the domain of the store it runs on: the path, query params and hash are kept; the domain is ignored. Examples:

Value The button redirects to
(empty) https://yourstore.com/cart
/basket https://yourstore.com/basket
/cart?openCart=true https://yourstore.com/cart?openCart=true

Good to know:

  • This setting lives in the dashboard, not in the integration code: it is neither an option of the SDK (@askdialog/dialog-sdk) nor a prop of the React / Vue components. The widget reads the value from your Dialog configuration.
  • It works on every install path: Shopify app, Prestashop module, GTM, SDK / custom storefront.
  • If your store runs multiple languages, the field is configured per language.

If your cart is a drawer that opens over the current page, there is no cart page to redirect to. The pattern:

  1. Your developer makes the storefront read a query param (e.g. ?openCart=true) that opens the drawer on page load:
if (new URLSearchParams(window.location.search).get("openCart") === "true") {
openCartDrawer(); // your drawer-opening code
}
  1. Then set that param as the Cart page URL, e.g. /?openCart=true.

This small piece of code belongs to your team, like the cart refresh glue: Dialog cannot open a drawer it does not know about.