Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Codes Pool

Security covered Under active development

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.

Drupal 9–10 · not 11

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
3.0.0 Stable 9–10 Feb 9, 2024
3.0.x-dev Dev 9–10 Feb 9, 2024