Skip to content

Commit

Permalink
PHP 5.4 error: write context; yet again, this time in a template. UPD…
Browse files Browse the repository at this point in the history
…ATE YOUR PHP PEOPLE.
  • Loading branch information
JustinSainton committed Feb 6, 2017
1 parent c6ea154 commit fb03617
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,18 @@
</td>
</tr>

<?php if ( ! wpsc_have_shipping_quote() ) : // No valid shipping quotes ?>
<?php
$shipping_country = wpsc_get_customer_meta( 'shippingcountry' );

if ( ! wpsc_have_shipping_quote() ) : // No valid shipping quotes
?>
<?php if ( ! wpsc_have_valid_shipping_zipcode() ) : ?>
<tr class='wpsc_update_location'>
<td colspan='5' class='shipping_error' >
<?php _e('Please provide a Zipcode and click Calculate in order to continue.', 'wp-e-commerce'); ?>
</td>
</tr>
<?php elseif ( ! empty( wpsc_get_customer_meta( 'shippingcountry' ) ) ) : ?>
<?php elseif ( ! empty( $shipping_country ) ) : ?>
<tr class='wpsc_update_location_error'>
<td colspan='5' class='shipping_error' >
<?php _e('Sorry, shipping quotes could not be calculated with the details provided. Please double check your shipping address details.', 'wp-e-commerce'); ?>
Expand Down

0 comments on commit fb03617

Please sign in to comment.