Merge pull request #8236 from n-dawson/master

[2.3] Resolve blank shipping information bug. Fixes #8235
This commit is contained in:
Mike Jolley 2015-05-28 12:21:38 +01:00
commit b77755af5c
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ class WC_Checkout {
foreach ( $this->checkout_fields as $fieldset_key => $fieldset ) {
// Skip shipping if not needed
if ( $fieldset_key == 'shipping' && ( $this->posted['ship_to_different_address'] == false || ! WC()->cart->needs_shipping() ) ) {
if ( $fieldset_key == 'shipping' && ( $this->posted['ship_to_different_address'] == false || ! WC()->cart->needs_shipping_address() ) ) {
$skipped_shipping = true;
continue;
}