before and after hooks in cart

This commit is contained in:
Triggvy Gunderson 2012-02-21 00:47:24 +01:00
parent 81fd3c0d2a
commit 46a91fd8f2
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ global $woocommerce;
</tr>
</thead>
<tbody>
<?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) :
@ -80,6 +82,8 @@ global $woocommerce;
<?php do_action('woocommerce_proceed_to_checkout'); ?>
</td>
</tr>
<?php do_action( 'woocommerce_after_cart_contents' ); ?>
</tbody>
</table>
</form>