Merge pull request #376 from curtismchale/master

adding matching before shipping calculator hook
This commit is contained in:
Mike Jolley 2011-12-15 11:16:06 -08:00
commit c616e67d66
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ global $woocommerce;
if (get_option('woocommerce_enable_shipping_calc')=='no' || !$woocommerce->cart->needs_shipping()) return;
?>
<?php do_action( 'woocommerce_before_shipping_calculator' ); ?>
<form class="shipping_calculator" action="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>" method="post">
<h2><a href="#" class="shipping-calculator-button"><?php _e('Calculate Shipping', 'woothemes'); ?> <span>&darr;</span></a></h2>
<section class="shipping-calculator-form">