New Zenner
- Join Date:
- Dec 2009
- Posts:
- 22
- Plugin Contributions:
- 0
is there a product-licensing addon for use with my 1.5.3?
I've been using this mod for years: http://www.zen-cart.com/showthread.php?36391
Now I updated my shop to 1.5.3 and need to edit order.php
My code:
$this->licences_html = 'Below you find the activation code for your software<p>';//empty first
$this->licences_text = 'Below you find the activation code for your software';//empty first
for ($i=0, $n=sizeof($this->products); $i<$n; $i++) {
$dbres = $db->Execute('SELECT activation_code, products_quantity FROM products_licences'
. ' WHERE products_id='.$this->products[$i]['id']
. ' AND orders_id='.$zf_insert_id
);
while(!$dbres->EOF) {
$this->licences_html .= '<p><b>'.$this->products[$i]['name'].'</b><br><span class=content-line-title>Activationcode: '.$dbres->fields['activation_code'].'<br>Number of users: '.$dbres->fields['products_quantity'].'<br>User Email: '.$this->customer['email_address'].'<br>Resellerl: '.$reseller.' '. $registratieemail .'</span></p>';
$this->licences_text .= $this->products[$i]['name'].":\n".$dbres->fields['activation_code']."\n\n";
$licences[$this->products[$i]['id']][] = $dbres->fields['activation_code'];
$dbres->MoveNext();
}
}
Is there an updated version or an alternative for this mod?
This is giving me so many problems!
Please help.