dbmv Posted February 18, 2007 Share Posted February 18, 2007 I really need a walktrough for this.. I need to know how I can add the IPs for VPS systems (or dedicated servers) into the Welcome email, along with making them show up in the profile of the service (to keep track of all IPs). I know there's a way to do that using the custom options fields, but I don't know how and what variables to use. Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 23, 2007 WHMCS CEO Share Posted February 23, 2007 You should see fields for Dedicated IP and Assigned IPs on the products page. Simply enter the IPs here and then in your welcome email use the merge fields [DedicatedIP] and [AssignedIPs] Hope that helps! Matt 0 Quote Link to comment Share on other sites More sharing options...
dbmv Posted February 23, 2007 Author Share Posted February 23, 2007 Hi Matt! Yup, now I see them. I was looking at the wrong page (the page where you edit the product, not the one under the client). So I just enter [DedicatedIP] and [AssignedIPs] somewhere in the welcome email, and it will fill in the info? And one last thing...is there someplace where we can see the full list of variables that we can use for whmcs? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 23, 2007 WHMCS CEO Share Posted February 23, 2007 Yep, when editing the email template click on the "Merge Fields" button at the bottom of the page. Matt 0 Quote Link to comment Share on other sites More sharing options...
dbmv Posted February 23, 2007 Author Share Posted February 23, 2007 Hi Matt, Works great, thanks! Right now, I have a custom field called SSH Port Would the variable be called : [Custom-SSH Port] or should I named it SSH, thus [Custom-SSH]? Just asking because I see all of the other variables don't have spaces... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 23, 2007 WHMCS CEO Share Posted February 23, 2007 The merge field you would need to use is [ProductCustom-SSH Port] 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted February 23, 2007 Share Posted February 23, 2007 And one last thing...is there someplace where we can see the full list of variables that we can use for whmcs? I too have been interested and looking for a list of variables with no luck. If one exists, that would be great, if not I am working on one as I find the different ones. 0 Quote Link to comment Share on other sites More sharing options...
dbmv Posted February 23, 2007 Author Share Posted February 23, 2007 Matt just said where to find it Go into an email template, and click on the "Merge Fields" button. There's obviously better places to have that button show up, but it's there nonetheless 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted February 23, 2007 Share Posted February 23, 2007 Wow, I guess when Matt said it, it went over my head. What about a list for all variables and where they can be used....for instance the variables you can use in the smarty templates also 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 24, 2007 WHMCS CEO Share Posted February 24, 2007 As has been discussed many times, just enter {debug} in your template and visit the page in your browser. Then you'll see everything that's available. Matt 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted February 24, 2007 Share Posted February 24, 2007 I guess I should have kept searching.... 0 Quote Link to comment Share on other sites More sharing options...
dr2web Posted March 20, 2008 Share Posted March 20, 2008 not to beat a dead horse, or bump this old thread, but isn't {debug} just going to print out the variables that are available for that particular page? If so, how would one go about getting a full list of all the variables used in the entire system? And how would one make other variables available? If that is all of them, please disregard. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted March 20, 2008 Share Posted March 20, 2008 not to beat a dead horse, or bump this old thread, but isn't {debug} just going to print out the variables that are available for that particular page? If so, how would one go about getting a full list of all the variables used in the entire system? And how would one make other variables available? If that is all of them, please disregard. Thanks. Why would it matter? you cant access variables that are available on other pages but not the current one. Debug will show you all available variables in general for that page. If you need more data, create a smarty plugin that pulls the info out of the db. 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted July 8, 2008 Share Posted July 8, 2008 As has been discussed many times, just enter {debug} in your template and visit the page in your browser. Then you'll see everything that's available. Matt Sorry to bump this old thread, but I didn't find any other reference to this. How / where / which template do I add the {debug} option in order to see the available info? 0 Quote Link to comment Share on other sites More sharing options...
minadreapta Posted July 8, 2008 Share Posted July 8, 2008 for example if you are interested to see the variables available for the invoice page, you put {debug} on the top of the whmcs_dir/your_template/viewinvoice.tpl. then when you open an html invoice in a browser(viewinvoice.php), another page opens up with the variables you need. 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.