Skip to main content

Understanding How Discount Codes Are Created and Managed by Lavar

Lavar automatically creates and manages discount codes for promotional campaigns using Shopify's official Discount API. The app handles discount code generation, updates, and expiration automatically, helping merchants maintain accurate and up-to-date discount configurations without manual intervention.

How Lavar Creates Discount Codes​

When a promotion is configured in Lavar, the app generates a corresponding discount code in Shopify. This process includes:

  1. Automatic Discount Generation: Whenever a promotion is created, updated, or removed in Lavar, the app automatically creates or updates the associated discount code.
  2. Automatic Code Replacement: If a promotion is modified in a way that requires a new discount configuration, Lavar may generate a new discount code and deactivate the previous one to prevent conflicts.
  3. Shopify Official Discount API: Lavar uses Shopify's official Discount API to ensure compatibility with Shopify's checkout and discount systems.

All discounts generated by Lavar can be viewed in: Shopify Admin → Discounts

Non-Editable Fields​

To ensure discounts function correctly, certain key fields should not be modified directly in Shopify:

  1. Customer spends: Defines the minimum purchase requirement needed to qualify for the discount.
  2. Customer gets: Defines the discount reward that customers receive.

Changing these values directly may cause the promotion to behave differently from the configuration set in Lavar.

Editable Fields and Considerations​

While some settings can be edited in Shopify, there are important considerations to keep in mind:

  • Active Date: You may adjust the activation date of a Lavar-generated discount. If you do so, ensure that the corresponding expiration date is configured correctly to avoid overlapping promotions.
  • Updates to Shopify: Since Lavar may generate a new discount code when a promotion is updated, merchants should verify that the latest discount remains active and that any outdated discounts are no longer being used.

Shopify Automatic Discount Limits​

Lavar-generated discounts are subject to Shopify's discount limitations.

Shopify allows a maximum of 25 active automatic discounts per store, including discounts created by third-party apps such as Lavar.

If your store has reached this limit, Shopify may prevent additional automatic discounts from being created until existing discounts are disabled or removed.

Shopify Discount Combinations​

Lavar discounts follow Shopify's discount combination rules.

Depending on your Shopify configuration, discounts created by Lavar may be combined with other eligible product, order, or shipping discounts.

If a customer enters multiple discount codes during checkout that cannot be combined, Shopify will display the following message:

Discount couldn't be used with your existing discounts.

This message is generated by Shopify and indicates that the selected discounts are not eligible to be used together based on Shopify's discount combination rules.

If customers encounter this message, merchants should review the discount combination settings in Shopify and ensure that the involved discounts are configured to allow combinations where appropriate.

For more information, please refer to Shopify's documentation:

https://help.shopify.com/en/manual/discounts/discount-combinations

Best Practices​

To ensure discounts work correctly:

  • Manage promotion settings directly within Lavar.
  • Avoid manually editing Lavar-generated discounts whenever possible.
  • Periodically review active discounts in Shopify.
  • Remove unused discounts to stay within Shopify's discount limits.
  • Test discount behavior after making configuration changes.

By following these guidelines, you can efficiently manage promotional campaigns using Lavar while ensuring your discount settings remain synchronized with Shopify.