rapidfire Posted December 30, 2008 Share Posted December 30, 2008 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! 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted December 30, 2008 Share Posted December 30, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
rapidfire Posted December 31, 2008 Author Share Posted December 31, 2008 Well I figured out the if/then statement... but now I am having trouble getting the custom fields from a service to come through smarty. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 1, 2009 Share Posted January 1, 2009 Can't help with pulling the custom field without more info, but your other part try this http://www.salix.gr/ajax_linked_selectboxes 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.