Gift Certificate Help

I just noticed when selecting a state from the drop down menu the states do not appear. How do I fix this quickly and easily without coding? I tried to uninstall and re-install the Certificate with no change.





Gift Certificate Link



I can easily checkout with a gift certificate selecting the e-mail option but some people prefer us to mail the certificate by usps.



Take Care

If you select a different country then select United States; the state drop down menu will list all the states. :confused:

I had mentioned this limitation in a previous post:



[url]http://forum.cs-cart.com/showthread.php?t=11456[/url]



But I’d never posted my solution, so here it is:



In /var/skins_repository/base/customer/addons/gift_certificates/views/gift_certificates/update.tpl:



Replace


```php

- {$lang.select_state} -
```

With

```php
- {$lang.select_state} -
{* addition, begin *}
{* Force initial population of US states. Presumes default country is set to US. *}
{* This is a hack to get around the bug that causes the states list to be empty at *}
{* first when the default country is set to US. *}
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District of Columbia
Florida
Georgia
Guam
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Puerto Rico
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virgin Islands
Virginia
Washington
West Virginia
Wisconsin
Wyoming
{* addition, end *}
```

Not the most elegant hack, but it works.

[quote name='KBM']I just noticed when selecting a state from the drop down menu the states do not appear. How do I fix this quickly and easily without coding? I tried to uninstall and re-install the Certificate with no change.


[URL="http://www.kbmotorsportsonline.com/index.php?dispatch=gift_certificates.add"]Gift Certificate Link[/URL]

I can easily checkout with a gift certificate selecting the e-mail option but some people prefer us to mail the certificate by usps.

Take Care[/QUOTE]

Thank you for your time.:cool:

I posted this as a bug (http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=1536).



We will see what they say.



Adam