Results 1 to 4 of 4

Thread: Smarty Customfields

  1. #1
    Join Date
    Jan 2008
    Posts
    10

    Default Smarty Customfields

    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!

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne Australia
    Posts
    670

    Default

    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.
    OZsmeBusiness
    Getting your Australian small business online and connected!

  3. #3
    Join Date
    Jan 2008
    Posts
    10

    Default

    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.

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne Australia
    Posts
    670

    Default

    Can't help with pulling the custom field without more info, but your other part try this
    http://www.salix.gr/ajax_linked_selectboxes
    OZsmeBusiness
    Getting your Australian small business online and connected!

Similar Threads

  1. new customfields values not being sent down
    By whmguy in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 09-28-11, 05:40 AM
  2. API: updateclientproduct - customfields
    By lexam in forum Customisation & Integration Questions
    Replies: 2
    Last Post: 09-08-11, 09:46 AM
  3. how do I hide customfields ?
    By normanvis in forum Customisation & Integration Questions
    Replies: 4
    Last Post: 09-13-08, 06:17 AM