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

read
Last updated at:

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.

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

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. Within the button block, enter the following string in the Link URL box:
{{ organization.url }}cart.php?action=add&product_id=##

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

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

5. Click Save to save your content.

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. If you're linking text in Klaviyo's classic template editor, make sure to set the Protocol field to <other>.

Outcome

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

Additional resources

x
Was this article helpful?
24 out of 47 found this helpful