---
title: "How to add a link that applies an item to a BigCommerce cart"
description: "Learn how to add a link to an email that applies an item to a BigCommerce cart. If you are prompting someone to view and purchase a specific product, such as a sale item, you can provide a link that they can click to add the item to their shopping cart."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/115005082747"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/115005082747.md"
locale: "en-us"
category: "Integrations"
section: "BigCommerce best practices"
updated: "2026-10-28"
---

# How to add a link that applies an item to a BigCommerce cart

## You will learn

Learn how to add a link to an email that applies an item to a BigCommerce cart. If you are prompting someone to view and purchase a specific product, such as a sale item, you can provide a link that they can click to add the item to their shopping cart.

## Before you begin

Make sure that you’ve [already integrated your Klaviyo account with BigCommerce](https://help.klaviyo.com/hc/en-us/articles/115005082547.md), and have created an email where you want to add your link.

The link below uses the website URL saved in your Klaviyo account. Make sure this is your BigCommerce storefront URL.

Note that this process only works for BigCommerce products without variations.

## Add your item link

1. Find and copy the Product ID for the relevant item in BigCommerce. You can find this ID by [exporting the product from BigCommerce](https://support.bigcommerce.com/articles/Public/Exporting-Products) and checking the Product ID column. 

Alternatively, you can do this by editing the product and locating the Product ID in the URL, as shown in the image below.

![BigCommerce admin product editing page for a sample product, with the Product ID highlighted in blue within the URL](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/3ab0ebae881af3266a678ddc4b90eeb876266d33-948x205.jpg?auto=format)

2. In Klaviyo, find the email template you'd like to edit and drag a **Button** block into your template; you can use whatever button text you'd like. 

3. Select the button block, then enter the following in the **Link address** field:
`{{ organization.url|trim_slash }}/cart.php?action=add&product_id=##`

![Email template editor in Klaviyo with button and button block setting Link URL highlighted](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/2862206e4c5b5d3dc811722cc3dbf0f814c349d6-1126x582.jpg?auto=format)

4. Where you see ##, replace these double hashes with the BigCommerce Product ID you copied.

5. Click **Preview**, enter your email address under **Send a preview using a profile**, and click **Send test**.

6. Open the test email and click the button. Confirm that it opens your BigCommerce cart with the correct product added before sending the email to customers.

7. Return to the editor. Your changes save automatically. Click **Exit** when editing a template or flow email. For a campaign email, click **Next** or **Save and return**, depending on the campaign builder.

When the recipient clicks the button, they will be taken directly to their shopping cart on your site with the specified product already added. If you don't want to use a button, you can hyperlink any text in your email and use the same URL string. 

## Outcome

You've now added a link to an email that applies an item to a BigCommerce cart.

## Additional resources

- [Getting started with BigCommerce](https://help.klaviyo.com/hc/en-us/articles/115005082547.md)
  Learn how to enable the BigCommerce integration in Klaviyo, add Viewed Product tracking, and confirm that all onsite tracking is working properly for your store. 
- [How to set up coupons for BigCommerce](https://help.klaviyo.com/hc/en-us/articles/360022884472.md)
  Learn how to set up BigCommerce coupon codes to use in Klaviyo emails and SMS so you can incentivize new subscriber and past customers to make a purchase. This guide will walk you through 2 methods for adding coupon codes to your emails:
