K Khan
Apr 28, 2016
  2188
(3 votes)

A tiny utility to generate coupons (Promotions That Drive Customer Engagement)

A tiny dojo based utility to genertae fairly complex coupon codes.

Image couponstype1.JPG

Image couponstype2.JPG

Nuget package is available at http://nuget.episerver.com/en/OtherPages/Package/?packageId=CouponGenerator

Code is available at https://github.com/khurramkhang/CouponGenerator

This is pure dojo based component. What it will add in you project, can be viewed on Github. It's still evolving... :) Feel free to add suggestion for future releases in comments section.

Apr 28, 2016

Comments

May 3, 2016 08:24 AM

Thank you Khurram, this can prove to be very helpful!

Please login to comment.
Latest blogs
Graph access with only JS and Fetch

Postman is a popular tool for testing APIs. However, when testing an API like Optimizely Graph that I will be consuming in the front-end I prefer t...

Daniel Halse | Feb 4, 2026

Best Practices for Implementing Optimizely SaaS CMS: A Collective Wisdom Guide

This guide compiles collective insights and recommendations from Optimizely experts for implementing Optimizely SaaS CMS, focusing on achieving...

David Knipe | Feb 4, 2026 |

A day in the life of an Optimizely OMVP: Learning Optimizely Just Got Easier: Introducing the Optimizely Learning Centre

On the back of my last post about the Opti Graph Learning Centre, I am now happy to announce a revamped interactive learning platform that makes...

Graham Carr | Jan 31, 2026

Scheduled job for deleting content types and all related content

In my previous blog post which was about getting an overview of your sites content https://world.optimizely.com/blogs/Per-Nergard/Dates/2026/1/sche...

Per Nergård (MVP) | Jan 30, 2026

Working With Applications in Optimizely CMS 13

💡 Note:  The following content has been written based on Optimizely CMS 13 Preview 2 and may not accurately reflect the final release version. As...

Mark Stott | Jan 30, 2026

Experimentation at Speed Using Optimizely Opal and Web Experimentation

If you are working in experimentation, you will know that speed matters. The quicker you can go from idea to implementation, the faster you can...

Minesh Shah (Netcel) | Jan 30, 2026