When updating shipping in cart, keep shipping calculator in DOM.
This commit is contained in:
parent
1f9b9c0ae0
commit
d2040eca4d
|
@ -100,7 +100,7 @@ if ( ! function_exists( 'is_cart' ) ) {
|
|||
* @return bool
|
||||
*/
|
||||
function is_cart() {
|
||||
return is_page( wc_get_page_id( 'cart' ) );
|
||||
return is_page( wc_get_page_id( 'cart' ) ) || defined( 'WOOCOMMERCE_CART' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -142,6 +142,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Pass correct shipping cost to PayPal.
|
||||
* Fix - Flat rate extra costs when costs are an array.
|
||||
* Fix - When ratings are required for reviews, ensure validation is performed if the rating element is removed from DOM.
|
||||
* Fix - When updating shipping in cart, keep shipping calculator in DOM.
|
||||
|
||||
= 2.3.1 - 11/02/2015 =
|
||||
* Fix - When the geolocation database cannot download, ensure the correct method is used to log the error.
|
||||
|
|
|
@ -23,7 +23,7 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->
|
|||
|
||||
<p><a href="#" class="shipping-calculator-button"><?php _e( 'Calculate Shipping', 'woocommerce' ); ?></a></p>
|
||||
|
||||
<section class="shipping-calculator-form">
|
||||
<section class="shipping-calculator-form" style="display:none;">
|
||||
|
||||
<p class="form-row form-row-wide">
|
||||
<select name="calc_shipping_country" id="calc_shipping_country" class="country_to_state" rel="calc_shipping_state">
|
||||
|
|
Loading…
Reference in New Issue