Skip to content

Commit

Permalink
Merge c97f537 into 8cf9dbc
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffPyeBrook committed Dec 15, 2015
2 parents 8cf9dbc + c97f537 commit 7635185
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wpsc-includes/checkout.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ function save_forms_to_db( $purchase_id ) {
if ( $wpsc_country->has_regions() ) {
$region = wpsc_get_customer_meta( 'billingregion' );
if ( ! empty( $region ) ) {
$checkout_item_values = $region;
$wpsc_region = $wpsc_country->get_region( $region );
$checkout_item_values = $wpsc_region->get_name();
}
}
}
Expand All @@ -592,7 +593,8 @@ function save_forms_to_db( $purchase_id ) {
if ( $wpsc_country->has_regions() ) {
$region = wpsc_get_customer_meta( 'shippingregion' );
if ( ! empty( $region ) ) {
$checkout_item_values = $region;
$wpsc_region = $wpsc_country->get_region( $region );
$checkout_item_values = $wpsc_region->get_name();
}
}
}
Expand Down

0 comments on commit 7635185

Please sign in to comment.