This module allows you to import and manage codes, such as coupons or discounts, from various sources like CSV files or APIs. It provides a system for storing, dispensing, and tracking these codes.
The Codes Pool module allows to import codes (e.g. coupon/discount) codes from various sources (CSV, API) and manage them.
Drupal 8
Drupal 8 version has a code collection content entity that gets a list of codeCollectionSource plugin to provide code collection source (CSV available out-of-box). The source plugin attached to the storage plugin which provides the location to store code.
Drupal 7
The Drupal 7 version provides a custom content entity that has a file upload field to upload a pool of codes from a CSV file. The module provides hooks to define custom file upload validation and table names where the code pool should be stored in. When uploading a file to the codes pool entity, the defined validation will run on the file, if the defined table doesn't exist yet, the table will be created and the codes pool uploaded into it. The module also handles the dispensing and tracking of codes left in a pool. Future enhancements would be to setup notification based on thresholds of unconsumed codes left in a pool to help to manage the code pools.
Ask your assistant about Codes Pool
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Entity API
- file Drupal core
- options Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.