Your state field within Field Management must match CBSubs invoice state field drop-down. Please review the following source.
[code:1]
<select size="1" class="inputbox" id="address_state" name="address_state">
<option selected="selected" value="">--- Click to select state ---</option>
<optgroup label="U.S. - States">
<option value="AK">Alaska</option>
<option value="AL">Alabama</option>
<option value="AR">Arkansas</option>
<option value="AZ">Arizona</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DC">District of Columbia</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
.....
[/code:1]
Notice Alaska is actually stored in the database as AK. What this means is your drop-down should have values such as the following.
AK
AL
AR
AZ
etc...
and NOT the following.
Alaska
Alabama
Arkansas
Arizona
etc...
Please also note this transfer is only done ONE time and that's generally at registration. Now you maybe wondering how you get it to DISPLAY like Alaska, that's easy, simply use language strings such as the following example in CBs language files.
[code:1]
define( 'AK', 'Alaska' );
define( 'AL', 'Alabama' );
define( 'AR', 'Arkansas' );
define( 'AZ', 'Arizona' );
[/code:1]
This will cause the display to translate, but not the actual inputs value to translate giving you the same appearance as CBSubs invoice.
Optionally you CAN edit CBSubs invoice rendering by editing the XML found at components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/xml/edit.front.invoice.xml, but I do NOT recommend doing this unless you are absolutely sure and comfortable with the changes (take note that when you upgrade CBSubs your changes will be lost! make a back-up before upgrading!).
Post edited by: krileon, at: 2010/08/23 22:21