sgrayban Posted March 22, 2010 Share Posted March 22, 2010 Is there a smarty tag I can put in my emails to provide the client with the license key ? Also why is the key being placed in the domain section under the admin clients product page ? Did I miss a step ? 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted March 24, 2010 Share Posted March 24, 2010 I'm getting the same thing on testing the addon and cannot figure this out. The licenses are being issued/controlled as I would expect but when I "purchase" a license the License Key is being inserted into the "Domain" field for the addon. At the moment I have configured a custom field called "License Key" and am cutting and pasting the key from the "Domain" field to make it look as you would expect. Is there a setting where this is defined in the addon or admin? 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 24, 2010 Author Share Posted March 24, 2010 There must be a way to do it. Matt did it here, if you go to your product page you will see your license and when you click on it it sends you to the "Product Details". When my clients click on mine they get a domain url instead. Very strange as there is nothing in the docs about this. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 25, 2010 Share Posted March 25, 2010 The license number is in the domain field as it makes it easier to setup rather than having to add a custom field to each licensed product. In your product email you can use this Your License Key for {$service_product_name} is {$service_domain} 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 25, 2010 Author Share Posted March 25, 2010 I don't have a problem with that, what clients don't like is when you click on the link they expect to go to the product instead of it being treated as a URL. Matt did it here so how did he do it ? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 25, 2010 Share Posted March 25, 2010 To change that then I guess you will need to edit your tpl file to change the url when its a licensed product 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted March 25, 2010 Share Posted March 25, 2010 Hi Sparky, thanks for the info. If anyone needs a quick start on the template change its in the clientareaproducts.tpl (and for me its on line 12) Find: {$service.group} - {$service.product}{if $service.domain}<br /><a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if} and replace with {$service.group} - {$service.product}{if isset ($service.domain) && $service.module == 'licensing'}<br /><a href="{$smarty.server.PHP_SELF}?action=productdetails&id={$service.id}" target="_blank">{$service.domain}</a>{else}<br /><a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if} 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted March 25, 2010 Share Posted March 25, 2010 P.S. To keep the template "clean" and cater for users that sell products and services other than those requiring domains the {else} should really be an {elseif $service.domain} as follows: {$service.group} - {$service.product}{if isset ($service.domain) && $service.module == 'licensing'}<br /><a href="{$smarty.server.PHP_SELF}?action=productdetails&id={$service.id}" target="_blank">{$service.domain}</a>{elseif $service.domain}<br /><a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if} 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 25, 2010 Share Posted March 25, 2010 Well done... it will only work for V4.2.1+ though $service.module is not in V4.1.2 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 25, 2010 Author Share Posted March 25, 2010 bummer and I was just about to get all giddy here 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 26, 2010 Author Share Posted March 26, 2010 Well done... it will only work for V4.2.1+ though$service.module is not in V4.1.2 I completely read that wrong.... for some reason my brain farted and I didn't see the V4.2.1+ Thanks for the tip Vox !!! 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted March 26, 2010 Share Posted March 26, 2010 @ Sparky - well caught! and thank you. @sgrayban - you're welcome. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 28, 2010 Author Share Posted March 28, 2010 (edited) Vox you should add this to the wiki if you can. http://wiki.whmcs.com/Licensing_Addon Edited March 28, 2010 by sgrayban typo 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.