Jump to content

Smarty Customfields


rapidfire

Recommended Posts

Hi there,

 

I am sorry if this has already been asked, but I did not have luck searching the forums.

 

Here is what I need to do...

 

I added 2 customfields to a service plan: servicetype and serverid

 

I need to write a smarty statement that pulls the servicetype.

 

If the servicetype = Dedicated, then it must add additional code to the page. If the servicetype doesn't = Dedicated, then it shows nothing additional.

 

Within the additional code, I will need to call the serverid variable and insert it within some php code to complete an API statement.

 

Basically, I need to know how to call customfields with smarty. I have searched the forums and the examples I found did not make any since to myself and I could not complete what I needed to do.

 

Thanks for the help!

Link to comment
Share on other sites

I'm guessing from reading your post that you have a level of coding competency.

 

Have you looked at the code that is used to identify domain types in configureproductdomain.tpl?

it uses some javascript to pull different forms, depending on the domain type that you choose (register, transfer, subdomain, none etc)

 

Assuming that none oe gives you an example of what you want to do, it might be a nice place to start.

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