How to Create Discount Codes in PrestaShop

On this page
  1. Accessing Discount Code Settings
  2. Information Tab
  3. Name
  4. Description
  5. Discount Code
  6. Partial Use
  7. Priority
  8. Status
  9. Conditions Tab
  10. Restrict to a Specific Customer
  11. Validity Period
  12. Minimum Cart Value
  13. Total Available
  14. Total Available Per User
  15. Restrictions
  16. Actions Tab
  17. Free Shipping
  18. Apply a Discount
  19. Apply Discount To
  20. Exclude Discounted Products
  21. Send a Free Gift
  22. Example Promotion
  23. Summary

Discount codes, also known as cart rules, allow you to offer customers discounts, free shipping, gifts, and other promotional benefits. They are a powerful tool for increasing sales, rewarding loyal customers, and running marketing campaigns.

Accessing Discount Code Settings

Log in to your PrestaShop administration panel and navigate to:

Catalog → Discounts

Open the Cart Rules tab and click:

Add New Cart Rule

A new rule configuration page will appear with three main sections:

  • Information
  • Conditions
  • Actions

Information Tab

The Information tab contains the basic settings for the discount code.

Name

Enter a descriptive name for the promotion.

Examples:

  • Summer Sale 10%
  • Welcome Discount
  • Free Shipping Promotion

Description

This field is optional and is used for internal administration purposes.

Discount Code

You can either:

  • Enter a custom code manually
  • Generate a random code automatically

Examples:

WELCOME10
SUMMER2026
FREESHIP

Partial Use

For fixed-amount discounts, this option allows any unused portion of the discount to be carried over for future purchases.

Example:

  • Discount value: €20
  • Cart value: €15

The remaining €5 can be saved for future use.

Priority

If multiple discount codes can be applied to the same cart, PrestaShop uses priority values to determine which rule is processed first.

Lower numbers have higher priority.

Example:

1 = highest priority
2 = second priority
3 = third priority

Status

Enable or disable the discount code.

Only active rules can be used by customers.

Conditions Tab

The Conditions tab determines when and by whom the discount code can be used.

Restrict to a Specific Customer

You can assign the code to a single registered customer.

This is useful for:

  • VIP discounts
  • Compensation vouchers
  • Personalized promotions

Validity Period

Set the start and end dates for the promotion.

After the expiration date, the code will no longer work.

Minimum Cart Value

Define the minimum order amount required before the discount can be applied.

Example:

Minimum order value: €50

Additional options allow you to specify:

  • Currency
  • Gross or net amount
  • Whether shipping costs are included

Total Available

Specify the maximum number of times the code can be used.

Example:

100

The code will stop working after 100 successful uses.

Total Available Per User

Limit how many times a single customer can use the code.

Example:

1

This allows each customer to redeem the code only once.

Restrictions

Additional restrictions can be applied based on:

  • Products
  • Categories
  • Manufacturers
  • Customer groups
  • Carriers
  • Countries

This allows highly targeted promotions.

Actions Tab

The Actions tab defines the actual benefit provided by the discount code.

Free Shipping

Enable this option if the code should waive shipping charges.

Apply a Discount

Choose the discount type:

Percentage Discount

Example:

10%

The customer receives a 10% discount on the eligible products.

Fixed Amount Discount

Example:

€20

The customer receives a fixed €20 reduction.

Apply Discount To

You can choose where the discount applies:

  • Entire order
  • Specific product
  • Cheapest product in the cart
  • Selected products

Exclude Discounted Products

This option determines whether products already on sale are included in the discount calculation.

  • Yes – Sale products are excluded.
  • No – Sale products remain eligible for the discount.

Send a Free Gift

You can automatically add a free product to the order when the code is used.

Examples:

  • Free sample
  • Promotional item
  • Complimentary accessory

Example Promotion

Let’s create a simple promotion:

Setting Value
Code WELCOME10
Discount 10%
Minimum Order €50
Validity 30 days
Usage Limit 1 per customer
Free Shipping No

Customers who spend at least €50 can use the code once to receive a 10% discount.

Summary

To create a discount code in PrestaShop, navigate to Catalog → Discounts → Cart Rules and click Add New Cart Rule. Configure the rule using the Information, Conditions, and Actions tabs to define the discount code, eligibility requirements, usage limits, and promotional benefits. PrestaShop supports percentage discounts, fixed-value discounts, free shipping offers, and free gifts, allowing you to create highly flexible marketing campaigns.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.