jrnetwork Posted February 24, 2007 Share Posted February 24, 2007 I have set up some custom fields for my clients, and would like to use some of them in my email templates. I looked in my php database, and looked at two fields I want to use, so I used the same convention as the normal whm ones, i.e. Username: [JRNS Domains Username] Password: [JRNS Domains Password] But this does not work? Is this possible, and if so how should it be done? ta. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 24, 2007 Share Posted February 24, 2007 Hey, Click on Merge Fields down at the bottom of the email. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted February 24, 2007 Author Share Posted February 24, 2007 Yes I have done that and used a few fields in some of my other emails. But I can not seem to get the custom fields.. the ones that I have created... to insert into the emails. In the database I can see that the database field names do not have spaces in them, but when you look at a customer profile at the front end they do. When I look in the database at the custom fields I have created, they have spaces in them. Maybe this is why they are not working. But if I was to make them so they did not have spaces in them, then they would look silly on the customers' profiles. Hopefully this makes sense now. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 24, 2007 Share Posted February 24, 2007 Yes I have done that and used a few fields in some of my other emails. But I can not seem to get the custom fields.. the ones that I have created... to insert into the emails. You did read the merge text in full The correct format is [ProductCustom-FieldName] or [Custom-FieldName] You have to leave the Custom and the - in their. If you had a filed named MyUsername it would like, [Custom-MyUsername] Also, make sure that the [ are [ and not some other &nsbq which is caused by the WYSIWYG. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted February 25, 2007 Author Share Posted February 25, 2007 Yeah but what if I have all of my custom fields done normally.. with spaces... i.e. i have some like this: JRNS Domains Password how would I do that with the [] around it to make it work? 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 25, 2007 Share Posted February 25, 2007 Yeah but what if I have all of my custom fields done normally.. with spaces... i.e. i have some like this: JRNS Domains Password how would I do that with the [] around it to make it work? You will need to put [Custom-JRNS Domains Password] As a coder, I never like spaces. In fact I some what hate them in coding, because they cause errors or add their own %2 as a space. You should try using - or _ instead of a space. However I think the one above should work. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 25, 2007 WHMCS CEO Share Posted February 25, 2007 Spaces will not cause any problems in the custom field name. 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.