Codes Pool Codes list
Codes Pool Collection Edit

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.

Supporting organizations: 
Contrib Budget

Project information

Releases