Mark1Hosting Posted September 23, 2015 Share Posted September 23, 2015 Hello Everyone. Let Start off by saying thanks to anyone that read`s or Could Possible help me out with my Issue i`m Having. My Issues is this i also Sell Voice Servers when i got all set up but having a Issue with the email that goes out to the Customer that has their I.P and Port info on to get in to their Voice Server they get from me. I Spoke to the Tec Guys that i get reselling from and they Emailed me back with this Hi Chris, You need to use the TPL variables and check out the server custom values array. I don't remember what the exact syntax but that's what you're looking for. {array.position} so to get the 2nd value in the server values array you would do {servervalues.2} Which I`m still New to most of these things but picking up things fast and i did look up this issue but am going know where fast so i thought maybe best to just get in here and ask for help. So if anyone here would be willing help me that would be great. Because i would love to get this done so I can move on to another part and get live sooner or later So if your willing to help me Message back here or Even add me on Skype at Mark1HostingServices that would be fastest way to get hold of me but will check this thread out every hour thanks for any help you can give me .. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 24, 2015 Share Posted September 24, 2015 Hi Mark, it sounds like you're looking to use conditional displays in your email template(s). http://docs.whmcs.com/Email_Templates#Conditional_Displays Product Custom Fields The same applies to Product custom fields, however they are referenced by {$service_custom_field_fieldnamehere}. To loop through and display all the custom fields that apply to a product, you can use a foreach loop like this: {foreach from=$service_custom_fields item=customfield} {$customfield.name}: {$customfield.value} {/foreach} specifically the product custom field - add that foreach loop to the template, make a test order to yourself and in the resulting email, you should be able to work out the variable name that you want to use... or if you already know the field name, just use {$service_custom_field_fieldnamehere}. 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.