Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sh-sabbir/easy-coupons
An WordPress plugin to generate locked video with coupon code.
https://github.com/sh-sabbir/easy-coupons
coupon hacktoberfest wordpress wordpress-plugin
Last synced: about 1 month ago
JSON representation
An WordPress plugin to generate locked video with coupon code.
- Host: GitHub
- URL: https://github.com/sh-sabbir/easy-coupons
- Owner: sh-sabbir
- License: gpl-2.0
- Created: 2021-05-10T19:03:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T10:53:49.000Z (over 3 years ago)
- Last Synced: 2023-02-26T12:02:45.407Z (almost 2 years ago)
- Topics: coupon, hacktoberfest, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Easy Coupons
A WordPress plugin to lock video with coupon code.
## Usage
```
- Create new locked video from "Dashboard -> Easy Videos"
- Enter Video title
- Enter Video url (only youtube/vimeo or other streaming embeed link will work)
- no support for self hosted video
- Select featured image. (It will be shown when video is locked.)
- Publish.- Copy the short code and it can be used anywhere to show a locked video.
```## Requirements (with estimation)
- [x] Create a plugin called "Easy Coupons" with the following features:
- [x] As an admin, I should be able to bulk generate any quantity of randomly generated, unique 4 character alpha-numeric coupon codes (ex. f5Ba, 891d, etc.) - **3 hours**
- [x] As an admin, I should be able to search and delete any individual coupon code - **1 hours**
- [x] As an admin, I should be able to specify an expiry date when I generate coupon codes - **1 hours**
- [x] As an admin, I should be able to bulk delete coupons based on expiry date - **1.5 hours**
- [x] Create a page with 3 gated educational YouTube videos
- [x] As a visitor, to unlock and display a single video I should be able to enter a single valid coupon code (found in the database and future expiry) - **2 hours**
- [x] As a visitor, I should receive an error message if I attempt to use the same coupon code more than once - **0.5 hours**
- [x] As a visitor, I should continue to have access to a video after I enter a valid coupon code (even if I close the browser and return to the site) - **1 hours**
- [x] As an admin, I should be able to see which video a coupon code was applied to - **2 hours**
- [x] As an admin, I should see a report of failed coupon code validations with two categories: not found & already used - **3 hours**
- [x] As an admin, I should be able to use the coupon code ADMN unlimited times to access any video - **1 hours**
- [ ] Testing - **4 hours**
- [ ] As a developer, I should be able to test any business logic with automated unit tests
- [x] Styling
- [x] Create a custom WP theme with the stylesheet of your choice - **2 hours**
- [x] Add animation to the success and failure states of entering a coupon - **1 hours**
- [x] Documentation - **4 hours**
- [x] Add code comments as needed to improve the ability for another developer to finish this project
- [x] Update the README with a brief written summary of what's been completed and what still needs to be done
- [x] Update the README Any other feedback including which features could be refactored or improved## Not complete
- Test cases## Other feedbacks
- `WP_LIST_TABLE` can have screen options to improve experience.
- A `scheduled event` to automatically check and update expired coupon status.
- Possible to hook the locking machanism to any post or page or custom post type.