Skip to main content

Planet Discounts & Upsells Integration

How to connect Planet Discounts & Upsells to your Lantern quiz so customers can add recommended products to the Planet side cart without leaving the Results Page.

Written by Ana Bunaiasu

The Planet Discounts & Upsells integration lets customers add products from your quiz in a side cart, without leaving the results page.

How cart drawers work with quizzes

Cart drawers (also called AJAX carts or side carts) only work inside your store. This means they only open correctly when the quiz is:

If the quiz is opened as a standalone link or is being previewed, it is no longer inside your store, so the cart drawer cannot open directly.

Before you start

Make sure that:

1. Enable Lantern Core

Lantern Core must be enabled for cart functionality to work correctly.

To enable it:

1.1 Go to Online Store → Themes in Shopify

1.2 Click Customize on your live theme

1.3 Open App embeds

1.4 Turn on Lantern Core

Image showing the Shopify Theme Editor with the 'App Embeds' section selected and 'Lantern Core' enabled.

1.4 Save your changes

This allows Lantern to communicate with your store’s cart and trigger the cart drawer.

2. Enable Planet Smart Cart in your quiz

2.1 Open your quiz and go to the Results Page.

2.2 Open Reviews, Cart, Subscriptions, then Cart & Side Cart Drawer.

Quiz Builder Results Page with a red arrow pointing to the Reviews, Cart, Subscriptions section highlighted in the right-hand settings menu

2.3 Under Do you use a cart drawer?, select Planet Smart Cart.

The Cart & Side Cart Drawer settings on the Results Page in the Lantern editor, with the Do you use a cart drawer? drop-down set to Planet Smart Cart. The new tab checkbox is checked and the Do not open a cart page checkbox is unchecked.

We recommend these settings:

  • Do you use a cart drawer?: Planet Smart Cart selected

  • Do not open a cart page: unchecked

  • If a cart page is opened, open it in a new tab: checked

2.4 Click Republish to make the change live.

What customers see

If the quiz is embedded in your store or opened on the dedicated in-store page, adding a product from the Results Page updates the Planet cart drawer and opens it automatically.

GIF showing a quiz displayed inside the store, where clicking Add to Cart from the Results Page automatically opens the Unicorn Cart Drawer

If the quiz is opened in a popup, adding a product also updates and opens the Planet cart drawer, but the drawer opens behind the popup. Customers see it once the popup is closed.

If the quiz is in Preview mode or opened as a standalone link when customers add to cart, a new tab opens in your store on the product listing page and triggers the cart drawer there

GIF showing a quiz opened as a standalone link, where clicking Add to Cart opens a new store tab on the product listing page and then triggers the Unicorn Cart drawer there.

This fallback is needed because cart drawers cannot open outside your store.

To find out more about the Results Page, read Set-up your Results Page. If you use a different side cart, see Theme Side Cart Integrations.

Did this answer your question?