Jump to content

Customize state drop down


consc198

Recommended Posts

Hello guys,

 

I'm trying to customize the state drop down filed in creditcard.tpl however i am having some issues.

 

Here is my code up to now:

 

<div class="control-group">

<label class="control-label" for="state">{$LANG.clientareastate}</label>

<div class="controls">

<select name="state" id="state" class="state">

{foreach from=$state item=state}

<option>{$state}</option>

{/foreach}

</select>

</div>

</div>

 

That loads the state dropdown fine with the styling i want however it only lists the first state (Alabama), what changes should i make to the foreach loop to make it display all of the states as it should?

 

Thanks in advance!

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