Improved coupon code generation: Reuse of patterns & exclusion of certain characters
Problem:
Currently, coupon templates (e.g., SHOP-{random}) can only be used once. If the same template is used in a subsequent campaign, Shopware prevents its creation with a message indicating that the template already exists.
Furthermore, it is not possible to exclude specific characters from the random code, which can lead to potential confusion (e.g., I vs. l or 0 vs. O).
Solution/Request:
A pattern may be used multiple times as long as no duplicates are created in the generated codes.
During generation, the system only checks whether a code already exists, not whether the pattern has already been used.
Optional configurable exclusion list for specific characters.
Relevance increases with the growing number of parallel voucher campaigns (marketing, promotion, campaign management). Customers with f.e. 400+ promotions are having a very difficult time due to the current situation.