How to Add a Link That Adds an Item to a Customer's Cart

Last updated at:


If you are prompting someone to view and purchase a specific product, e.g. a sale item, you may want to provide a link/button where this person can click and instantly add the item to his/her shopping cart.

This process only works for BigCommerce products without variations.

Create a Link that Adds an Item to a Customer's Cart

First, find 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, or by editing the product and locating the Product ID in the URL.

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. We'll be updating the Link URL field.


Here, enter the following string as the Link URL:

{{ organization.url }}cart.php?action=add&product_id=##

Where you see ##, replace these double hashes with the Product ID for the item you'd like to get added to the shopper's cart.

This button, when clicked, will take the recipient directly to his/her shopping cart on your website with the specified product already there waiting. If you don't want to use a button, you can hyperlink any text and use the same URL string.

Was this article helpful?
21 out of 39 found this helpful