diff --git a/README.md b/README.md index 16b5ac4..b81ae38 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# isotope-product-licenses \ No newline at end of file +# isotope-product-licenses + +This extension complements a license key management and its assignment to products which can then be picked up (via insert tags) and sent via the Notification Center. + +The following insert tags are available: +- `{{license_collection::*}}` +- `{{license_product::*}}` + +* = Id of collection / product \ No newline at end of file diff --git a/src/EventListener/InsertTagsListener.php b/src/EventListener/InsertTagsListener.php index c960d99..84c3227 100644 --- a/src/EventListener/InsertTagsListener.php +++ b/src/EventListener/InsertTagsListener.php @@ -25,7 +25,7 @@ class InsertTagsListener { private const SUPPORTED_TAGS = [ 'license_product', - 'license_card' + 'license_collection' ]; /** @@ -75,7 +75,7 @@ private function replaceLicenseInsertTags($insertTag, $intId) $arrProductIds = []; $arrProductLicenses = []; - if($insertTag === 'license_card') + if($insertTag === 'license_collection') { $productsInCollection = ProductCollectionItem::findBy(['pid=?'], $intId, array());