Anders Posted December 8, 2013 Share Posted December 8, 2013 Hi guys, as I am not a coder I wonder if I could get some help. when I add this link /whmcs/clientarea.php?action=productdetails&id={$service_id} in my "Hosting Account Welcome Email" the link is generating the service ID. But if I add the same link header.tpl or other page the link don generate any service id. any ideas how I can make it generate the service id? warm regards K 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 8, 2013 Share Posted December 8, 2013 not all pages have access to the same variables - so with email templates, you can only use the merge fields listed in the box at the bottom of the page; with the other site templates pages, you can see what variables can be easily accessed by adding {debug} into your template source code. also, it may be available in the other template pages - but not necessarily be called {$service_id} - it's possible it could be called something else. 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted December 8, 2013 Author Share Posted December 8, 2013 Thx biran, any ideas how this can be done then? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 8, 2013 Share Posted December 8, 2013 it depends in what page you want to do it and how you want to use it - but in general, there are two ways to do this... you either see if the variable is available on the given template page - for example, in clientareaproductdetails.tpl you can access the variable {$id} which appears to be the same as your {$service_id}... although in clientareaproducts.tpl, it's accessed by {$service.id} or alternatively, you query the database and pull the info from there. 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.