How to create unique coupons for PrestaShop
You will learn
Learn how to create unique, single-use coupons for your PrestaShop store and use them in flows to incentivize subscribers to make a purchase. To do this, you’ll first create your coupon in PrestaShop, then configure settings for the linked coupon in Klaviyo.
Unique coupon codes for PrestaShop can only be used in flow emails or SMS messages, not campaigns or forms. For a campaign, you can generate codes in PrestaShop and upload them to Klaviyo, or use a static coupon code.
Use cases for unique coupons in flows
- Abandoned cart
Send a discount code that’s only active for a limited amount of time (e.g., 2 to 4 days) to cart abandoners who haven’t purchased before to create a sense of urgency and encourage conversions from casual browsers. - Winback
Send a discount code to buyers who haven’t purchased recently to incentivize them to purchase again. Similar to the abandoned cart coupon logic, sending a coupon with a set expiration date can create a sense of urgency and prompt a purchase. - Welcome series
Send a discount code to new subscribers as soon as they join your email list. You can send another code with an increased incentive if they still haven’t made a purchase after 2 weeks.
Before you begin
Klaviyo module version
To use unique coupons with PrestaShop, you must use Klaviyo’s PrestaShop module version 1.5.0 or higher.
If you are upgrading from a version below 1.3.0, cart rebuild links that were used in abandoned cart emails sent prior to the upgrade will no longer work. However, all abandoned cart messages sent after the upgrade will function properly.
To update your module to the newest version:
- Log in to your PrestaShop admin.
- Navigate to Modules > Module Manager.

- Scroll to find the Klaviyo module and select Upgrade.

To learn about changes made in each version, head to the Klaviyo module in PrestaShop’s Addons Marketplace, scroll down to What’s New, and click Show changelog history.
What is the Cart Rule Limit setting?
In the Klaviyo module for PrestaShop, the Cart Rule Limit setting allows you to limit how customers may combine cart rule codes on a single order. By default, this is set to One cart rule per prefix. This prevents a customer from adding more than one code with the same prefix at checkout.

Integration
Make sure you’ve integrated Klaviyo with PrestaShop before creating coupons. To check your integration settings:
- Select Integrations from Klaviyo’s left-hand navigation.
- Select PrestaShop, then open the Settings tab.
- Review your integration settings. If you make changes, click Save.
If Content > Coupons is missing, check that your user role has permission to view coupons.
Create your coupon in PrestaShop
Coupons in PrestaShop are called Cart rules.
To create a new cart rule in PrestaShop, navigate to the Cart rules page and select Add new cart rule.
There are 3 main tabs in PrestaShop when creating a cart rule:
- Information
Set the cart rule's identifiers (e.g., name) and the main settings. - Conditions
Set which customers the coupon should apply for. - Actions
Set the cart rule’s discounts and promotions.

Learn more about how to create a cart rule in PrestaShop and see a description of each field.
Once you’ve saved your cart rule in PrestaShop, note its ID so you can link it to a coupon in Klaviyo.
Configure your coupon in Klaviyo
Now that you’ve created your cart rule in PrestaShop, you need to set it up in Klaviyo so you can generate codes for your flows.
- Navigate to Content > Coupons in Klaviyo’s left-hand navigation.
- In the menu bar along the top, select the PrestaShop tab.

- Select Create coupon.
- Enter the following details:
- Name
Create a unique name for the coupon in Klaviyo using letters, numbers, and underscores. You’ll use this name to select the coupon in messages. You cannot change the name after creating the coupon. - Cart rule ID
Enter the ID of the cart rule you saved in PrestaShop. It must match the associated cart rule ID exactly. - Prefix
Enter an optional prefix to be applied to each cart rule generated in PrestaShop. Klaviyo will generate a random code for each person, but you can also specify a prefix to be included before every 10-character alphanumeric code (e.g., the prefix WELCOME20 will result in a code that looks like WELCOME20-0123456789).
- Name
- Click Next. Klaviyo checks that the cart rule exists and that your coupon name is unique before showing the settings.
- Configure the following settings:
- Quantity
In Minimum inventory, enter the minimum number of codes you expect to need each day, from 1 to 150,000. Klaviyo uses this number to generate an initial supply of codes and replenish your inventory. - Active dates
Set the coupon’s end date, time, and time zone. Codes become active when they are generated; you cannot select a future start date in Klaviyo. The active dates used by Klaviyo override the validity dates on the Conditions tab of your cart rule in PrestaShop. For the end date, select:- After a certain number of days
Choose how many days the code remains valid, plus an expiration time and time zone. Expiration is calculated from the day the code is generated, and new codes can only be assigned to recipients that same day. - On a specific date
Choose the date, time, and time zone after which the coupon will no longer be valid.
- After a certain number of days
- Quantity
- Click Create coupon.
Once you have created your coupon in PrestaShop and configured it in Klaviyo, Klaviyo will begin generating codes automatically for your flow messages. Below is an example of a correctly configured coupon in Klaviyo:

Use your unique coupon in a flow
Once you’ve created and configured your coupon, insert it into a flow message.
- Navigate to the Flows tab in Klaviyo’s left-hand navigation.
- Open an existing flow or create a new one.
- Select a flow message inside your flow.
- Open the message editor for the selected flow message.
- Click in a text field, then open the personalization menu. Depending on your editor, you may see a person icon or a button labeled Personalization.

- From the All types menu, select Coupons.

- Select the coupon you'd like to add.
- Optional: Return to the flow builder, select the 3 dots on your flow email, and click Preview. The in-app preview shows the coupon’s name followed by “-PREVIEW” instead of a unique code. A code is assigned to the recipient when the message is sent.

When a message is sent, the coupon tag is replaced with a unique discount code containing your optional prefix and 10 random alphanumeric characters. If you include the same coupon tag in multiple flow messages, the recipient receives the same unique code as long as it has not expired.

When you create your coupon, Klaviyo generates an initial batch based on Minimum inventory. For example, a minimum inventory of 100 generates a batch of 100 unique codes.
For coupons set to After a certain number of days, Klaviyo checks available codes about every 24 hours and generates enough to restore your minimum inventory. In the example above, it replenishes the inventory to 100. Coupons set to On a specific date do not use this daily replenishment.
If a flow needs a code and none are available, Klaviyo requests more codes. This applies to both end-date options. The message can wait while codes are generated, so choose a minimum inventory that covers your expected daily sends.
Because flow coupon codes replenish automatically, you do not need to manually add batches using the Add codes option.
Test your flow email’s coupon
Before sending coupon messages to your audience, test the email with your own profile. The following steps set the flow’s actions to Manual, so they will not send automatically.
- In the flow builder, click Review and turn on or Update status.
- Change the status to Manual.
- Keep Update status now selected, then click Save.
- Trigger the flow using your own email address by performing its trigger action, such as signing up to the list connected to a welcome flow. Make sure your test profile meets the flow’s filters.
- Wait for your test profile to reach the email, including any time delays before it. The profile will appear under Needs Review.
- Select the flow email and click View details, then open Recipient activity > Needs Review.

- Find your test profile and select Send Now.

If no codes are ready when you send the test email, generating them can take a few minutes. You may see Retrying: Generating Coupon Codes in the email’s recipient activity while Klaviyo waits. If the message remains skipped, check the troubleshooting steps below.
- Check your inbox for the email with the unique code.
Start sending automatically
- When you’re ready to send automatically, return to the flow builder and click Update status.
- Select Live and keep Update status now selected.
- Click Save.
Messages already in Needs Review still require a manual send or cancellation.
Troubleshooting common coupon issues
If you are seeing issues with creating unique coupons for PrestaShop in Klaviyo, go through the following recommended troubleshooting steps.
Check your Klaviyo plugin version
Klaviyo's unique coupon feature for PrestaShop requires version 1.5.0 or higher of the Klaviyo add-on for PrestaShop. You can check the version of your Klaviyo plugin in PrestaShop under Modules > Module Manager.
If you need to update your Klaviyo add-on, select Upgrade.

Check your PrestaShop integration settings
If your integration with PrestaShop is not syncing, or your PrestaShop store is unreachable, Klaviyo will not be able to generate new coupon codes.
To view your PrestaShop integration settings:
- Select Integrations from Klaviyo’s left-hand navigation.
- Select PrestaShop, then open the Settings tab.
- Review your integration settings. If you make changes, click Save.
For more assistance on configuring your Klaviyo integration with PrestaShop, see Getting started with PrestaShop.
Verify the Cart Rule ID exists in PrestaShop
If you receive an error indicating that the PrestaShop Cart Rule ID cannot be found, Klaviyo is not able to match the specified Cart Rule ID to one in your PrestaShop account.
To resolve this, update the Cart Rule ID for your coupon, ensuring that it matches an existing cart rule on your PrestaShop store.
Additional resources
- Getting started with coupon codes in Klaviyo
Learn how to create and upload unique and static coupon codes in Klaviyo to incentivize customers to engage with your brand. Offering an incentive can help you improve the customer experience, resulting in higher sales and increased lifetime value.
- How to create static coupons for PrestaShop
Learn how to create PrestaShop coupons using the Klaviyo module in PrestaShop. You can upload these coupons to Klaviyo and include them in messaging to get your customers excited about promotions on your site.
- How to use unique coupon codes in SMS and MMS messages
Learn how to use unique coupons in your SMS/MMS messages so that you can send one-time-use coupons to your SMS subscribers and encourage them to make a purchase.