Jump to content

Help with using merge fields in welcome email (and if statement)...


UH-Matt

Recommended Posts

HI

 

Hoping someone will help me with the code here, as I am not a PHP developer but can generally get most things together.

 

I need to add a sentence to the welcome email based on one of our configurable options fields.

 

I know the merge field is:

 

Config. Options {$service_config_options}

 

but how do I go about using this properly?

 

The configurable option group is "MD packs" and configurable option name is "Multiple Domain Hosting" and the answer will either be "None" or something else.... If the answer is anything but "None" I want to add a sentence to the welcome email.... Any help with the code?

Link to comment
Share on other sites

  • 2 weeks later...

Matt,

 

You can prob. do something like:

 

{if $service_config_options.0.value == 'blah'}some text goes here{/if}

 

if you put a nice little {$debug} at the top of your email template it 'should' dump out all the smarty variables that are available to you at that time.

 

Frank

Link to comment
Share on other sites

  • 3 weeks later...

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