During consultation we determined our client’s requirements and decided to split the project into two sections: the front end of the website and the admin area.
The main requirement was to show an email form on the front end of the website. The aim was to allow the user to fill in their email details so that a coupon code would be automatically generated. This function needed to be re-usable across multiple WordPress websites. To achieve this we created a shortcode that our client could easily integrate into any WordPress website or theme.
The admin area required that coupon codes could be added both individually and through a CSV file. There also needed to be an export function so that captured email addresses could be exported in a CSV file. To this end we created a custom page on the admin panel that allowed for all of this functionality.