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

Estimated 2 minute read

|

Updated Aug 6, 2025, 12:00 AM EST

Table of contents

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

  1. Find and copy the Product ID for the relevant item in BigCommerce. You can find this ID by exporting the product from BigCommerce 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

BigCommerce admin product editing page for a sample product, with the Product ID highlighted in blue within the URL

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

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

Email template editor in Klaviyo with button and button block setting Link URL highlighted

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

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

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

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

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

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:

Was this article helpful?

YesNo

Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community

Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.

Visit Community

Partners

Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.

Hire a partner

Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance Availability varies by location and plan type

Log in