filter tweaks
This commit is contained in:
parent
b5ed56c82d
commit
c6a6949c5c
|
@ -688,7 +688,7 @@ class WC_Cart {
|
|||
'variation' => $variation,
|
||||
'quantity' => $quantity,
|
||||
'data' => $product_data
|
||||
) ) );
|
||||
) ), $cart_item_key );
|
||||
|
||||
}
|
||||
|
||||
|
@ -713,7 +713,7 @@ class WC_Cart {
|
|||
unset( $this->cart_contents[$cart_item_key] );
|
||||
} else {
|
||||
$this->cart_contents[$cart_item_key]['quantity'] = $quantity;
|
||||
do_action( 'woocommerce_after_cart_item_quantity_update', $this->cart_contents[$cart_item_key], $quantity );
|
||||
do_action( 'woocommerce_after_cart_item_quantity_update', $cart_item_key, $quantity );
|
||||
}
|
||||
|
||||
$this->set_session();
|
||||
|
|
|
@ -168,6 +168,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Email tfoot compatibility for outlook
|
||||
* Tweak - Separate sections for each shipping method, due to the volume of data being posted upon save.
|
||||
* Tweak - Removed shortcode wrappers/cache for main pages since they are only ever called once per page load
|
||||
* Tweak - woocommerce_after_cart_item_quantity_update action sends cart item key instead of object
|
||||
* Fix - Product cat sortable when item cannot be moved.
|
||||
* Fix - Do not show the Additional Information tab on product single page if contents are hidden or not existing.
|
||||
* Fix - nofollow add to cart links to prevent indexing
|
||||
|
|
|
@ -25,10 +25,10 @@ global $woocommerce;
|
|||
<?php do_action( 'woocommerce_before_cart_contents' ); ?>
|
||||
|
||||
<?php
|
||||
if (sizeof($woocommerce->cart->get_cart())>0) :
|
||||
foreach ($woocommerce->cart->get_cart() as $cart_item_key => $values) :
|
||||
if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) :
|
||||
foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) :
|
||||
$_product = $values['data'];
|
||||
if ($_product->exists() && $values['quantity']>0) :
|
||||
if ( $_product->exists() && $values['quantity'] > 0 ) :
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue