Article ID: 8304, created on Mar 28, 2010, last review on Nov 7, 2014

  • Applies to:
  • Business Automation

Symptoms

Provider created promotion activated by promo code and entered promo code exactly as 5percent in hope that only this code will be valid to get promotion.

However, a customer entered promo code as 25percent and promotion was applied to their order despite of the fact that customer entered code which is not exactly the same as Provider set up in promotion.

Moreover, such codes as 5percents, 15percents and other similar ones also allow to get promotion.

Cause

Actually promotion code is regular expression mask. All values which are listed above match to the regular expression Provider set up in the promotion, that is why promotion was applied to orders.

Resolution

If you want to define the exact string as promo core, e.g. 5percent, then define promo code as ^5percent$, the only string which matches to this regular expression is exactly '5percent' (without quotes).

Search Words

Promotion not applied

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF