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.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Content editing experience
1 site reports using this module
- Created by sbergmann on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 3.0.x-dev updated 9 Feb 2024 at 23:53 UTC
Bug fixes and performance updates
Development version: 8.x-2.x-dev updated 10 Nov 2023 at 09:49 UTC



