Version Notes
Bug fix: Do not display License Key information if the product does not have the QLM Settings attribute set.
Download this release
Release Info
| Developer | Soraco Technologies |
| Extension | QuickLicenseManager |
| Version | 1.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.1 to 1.0.2
app/code/local/Soraco/Qlm/Model/Observer.php
CHANGED
|
@@ -30,25 +30,29 @@ class Soraco_Qlm_Model_Observer {
|
|
| 30 |
|
| 31 |
$coll = Mage::getModel('catalog/product')->load($pid);
|
| 32 |
$licparameter = $coll->getLicparameter();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
$keyid = Mage::helper("soraco_qlm")->generatekeydata($pid,$licparameter,$parameter);
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
| 52 |
}
|
| 53 |
}
|
| 54 |
|
| 30 |
|
| 31 |
$coll = Mage::getModel('catalog/product')->load($pid);
|
| 32 |
$licparameter = $coll->getLicparameter();
|
| 33 |
+
|
| 34 |
+
if($licparameter != "")
|
| 35 |
+
{
|
| 36 |
+
$parameter["is_quantity"] = $item->getQtyOrdered();
|
| 37 |
|
| 38 |
+
$keyid = Mage::helper("soraco_qlm")->generatekeydata($pid,$licparameter,$parameter);
|
| 39 |
+
|
|
|
|
| 40 |
|
| 41 |
+
$existentOptions = $item->getProductOptions();
|
| 42 |
+
if (!isset($existentOptions['additional_options'])) {
|
| 43 |
+
$existentOptions['additional_options'] = array();
|
| 44 |
+
}
|
| 45 |
|
| 46 |
+
if($keyid!="")
|
| 47 |
+
{
|
| 48 |
+
$existentOptions['additional_options'][] = array(
|
| 49 |
+
'label' => 'Licence Key',
|
| 50 |
+
'value' => $keyid,
|
| 51 |
+
'print_value' => $keyid
|
| 52 |
+
);
|
| 53 |
+
$item->setProductOptions($existentOptions);
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
}
|
| 57 |
}
|
| 58 |
|
app/code/local/Soraco/Qlm/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Soraco_Qlm>
|
| 5 |
-
<version>1.0.
|
| 6 |
</Soraco_Qlm>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Soraco_Qlm>
|
| 5 |
+
<version>1.0.2</version>
|
| 6 |
</Soraco_Qlm>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
app/etc/modules/Soraco_Qlm.xml
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<Soraco_Qlm>
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>local</codePool>
|
| 7 |
-
<version>1.0.
|
| 8 |
</Soraco_Qlm>
|
| 9 |
</modules>
|
| 10 |
</config>
|
| 4 |
<Soraco_Qlm>
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>local</codePool>
|
| 7 |
+
<version>1.0.2</version>
|
| 8 |
</Soraco_Qlm>
|
| 9 |
</modules>
|
| 10 |
</config>
|
package.xml
CHANGED
|
@@ -1,18 +1,59 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>QuickLicenseManager</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://opensource.org/licenses/lgpl-license">LGPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
-
<summary>
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
<authors><author><name>Soraco Technologies</name><user>soraco</user><email>ralph@soraco.co</email></author></authors>
|
| 13 |
-
<date>2017-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magelocal"><dir name="Soraco"><dir name="Qlm"><dir name="Helper"><file name="Data.php" hash="a57fcc28de8d31eb65b13b66818bcf81"/></dir><dir name="Model"><file name="Observer.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.1.0</min><max>7.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>QuickLicenseManager</name>
|
| 4 |
+
<version>1.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://opensource.org/licenses/lgpl-license">LGPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
+
<summary>Integrates QLM with Magento by automatically generating a license key when a new order is placed.
|
| 10 |
+

|
| 11 |
+
</summary>
|
| 12 |
+
<description><a href="https://soraco.co">Quick License Manager</a>
|
| 13 |
+
is a software license protection tool that protects your application against piracy. Quick License Manager Professional is a commercial product that sells for <b>$US 600 </b> per license. You can consult our pricing and purchase a QLM Professional license on our <a href="https://soraco.co/pricing">web site.</a> This QLM Magento Extension is available free of charge to all <a href="https://soraco.co/quick-license-manager">QLM Professional</a> customers.
|
| 14 |
+

|
| 15 |
+
<br /><br />
|
| 16 |
+
If you use Quick License Manager (QLM) to protect your application against piracy, you can now streamline the license key generation process with our Magento integration.
|
| 17 |
+
When an order is placed via Magento, our Magento extension communicates with the QLM License Server and sends the order and customer information to the QLM License Server.
|
| 18 |
+
The QLM License Server populates its database with the order information, creates the required license keys and sends them back to Magento.
|
| 19 |
+
Magento then stores the License Key within the order and includes the license key in the email that is sent to the customer.
|
| 20 |
+
<br />
|
| 21 |
+
<br />
|
| 22 |
+
Features:
|
| 23 |
+
<br />
|
| 24 |
+
- Sends order information to the QLM License Server<br />
|
| 25 |
+
- Generates a license key based on the order<br />
|
| 26 |
+
- Embeds the license key in the email sent to the customer
|
| 27 |
+
<br /><br />
|
| 28 |
+

|
| 29 |
+
To integrate QLM with Magento, follow the steps below:
|
| 30 |
+
<br />
|
| 31 |
+
- Install the Quick License Manage Extension<br />
|
| 32 |
+
- Go to System Configuration<br />
|
| 33 |
+
- Locate the QLM panel on the left hand side<br />
|
| 34 |
+
- Go to the QLM / General section<br />
|
| 35 |
+
- Set the License Server Url to the URL of your QLM License Server. Example: http://quicklicensemanager.com/qlmdemov9/qlmservice.asmx<br />
|
| 36 |
+
- Click Save Config
|
| 37 |
+
<br /><br />
|
| 38 |
+
Next, you need to configure your product as follows:<br />
|
| 39 |
+

|
| 40 |
+
- Go to Catalog / Manage Products<br />
|
| 41 |
+
- Add a new product of type Downloadable.<br />
|
| 42 |
+
- In the General section, locate the QLM Settings property<br />
|
| 43 |
+
- Set the value as follows (replace the values to match your product): &is_productid=1&is_majorversion=1&is_minorversion=0&is_licensemodel=permanent&is_features=0:3<br />
|
| 44 |
+
- Click Save<br /><br />
|
| 45 |
+

|
| 46 |
+
Now place an order for your product and verify that:<br />
|
| 47 |
+
- Customer information entered in Magento was published to the QLM License Server<br />
|
| 48 |
+
- A license key was generated in the QLM License Server<br />
|
| 49 |
+
- A license key is associated to the order in Magento<br />
|
| 50 |
+
- A license key was included in the email sent to the customer<br />
|
| 51 |
+
</description>
|
| 52 |
+
<notes>Bug fix: Do not display License Key information if the product does not have the QLM Settings attribute set.</notes>
|
| 53 |
<authors><author><name>Soraco Technologies</name><user>soraco</user><email>ralph@soraco.co</email></author></authors>
|
| 54 |
+
<date>2017-07-14</date>
|
| 55 |
+
<time>21:57:29</time>
|
| 56 |
+
<contents><target name="magelocal"><dir name="Soraco"><dir name="Qlm"><dir name="Helper"><file name="Data.php" hash="a57fcc28de8d31eb65b13b66818bcf81"/></dir><dir name="Model"><file name="Observer.php" hash="f73876a029d76e5e30ec8b29b36b1be7"/></dir><dir name="controllers"><file name="IndexController.php" hash="cb53d827f738050e0c6bc0a0ed0595c5"/></dir><dir name="etc"><file name="config.xml" hash="8ce561156ae8690927297aad72efdbb4"/><file name="system.xml" hash="45d020bf56efceb0bf8c984ae81205d3"/></dir><dir name="sql"><dir name="soraco_qlm_setup"><file name="mysql4-install-0.1.0.php" hash="0e8ebc44878479cd35bc3562731622ad"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Soraco_Qlm.xml" hash="7df16536eb7f7a82c433a2466b73d5f6"/></dir></target></contents>
|
| 57 |
<compatible/>
|
| 58 |
<dependencies><required><php><min>5.1.0</min><max>7.0.0</max></php></required></dependencies>
|
| 59 |
</package>
|
