Jump to content

Using custom fields in emails


jrnetwork

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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