wp-e-commerce/WP-e-Commerce — pull request #1173 by JeffPyeBrook (2014-04-25 14:44:55+00:00)
Title: Checkout form handling of countries, countries regions and states

* The region drop down, when shown will appear in the state/province row rather than below the country. This means that the relative order of field entry will not change dependant on whether or not a country has regions.
* If billing or shipping country is not being displayed, and current base country has regions, user can now select a region
* If billing or shipping country is not being displayed, and current base country has regions, a region HTML drop down select element is presented rather than a HTML edit control
* If current shipping country does not have regions a region edit HTML element will be displayed in the shipping calculator
* Label for the billing and shipping state rows will change depending on which billing or shipping country is selected. The value of the label will be whatever is defined in the country meta. For example "State" for USA, "Province" for Canada, etc.
* Checkout form class enhanced to allow all form elements to be returned on request, rather than just active form elements
* Fix issue where shipping state does not change when shipping calculator drop down changes
* Changed misleading information message about ordering availability to be more shipping address oriented
* Put current customer meta values into hidden fields on checkout page just in case store owner hides fields on checkout forms. This allows any JavaScript actions that have depend on the availability of specific meta items to work properly if the store administrator hides any of the fields in the checkout forms.
* Shipping state/region elements visibility was being changed when billing country was being changed. Change billing state/region visibility when shipping country changes instead.
* Upper case first letter of region label in country meta
* Add class method to find specific checkout item by matching id or unique name
* Adjusted spacing and tabs to coding standards in some places
* The check for if shipping quotes need to be recalculated is more robust and if the postal code changes, includes a check of all installed shipping modules and if they require the zip code

*Addresses problems described in issue #1119 and should be merged after the PR #1158 which addresses issue #1144*