Skip to content

Commit

Permalink
Rename insert tag (license_card)
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Apr 23, 2020
1 parent 6a69a33 commit b3fdee2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# isotope-product-licenses
# 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
4 changes: 2 additions & 2 deletions src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class InsertTagsListener
{
private const SUPPORTED_TAGS = [
'license_product',
'license_card'
'license_collection'
];

/**
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit b3fdee2

Please sign in to comment.