Jump to content

TPL variables issue


Mark1Hosting

Recommended Posts

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 ..

Link to comment
Share on other sites

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}.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated