After checkout validation hook + place order filter

This commit is contained in:
Mike Jolley 2011-11-18 17:39:56 +00:00
parent 8b4e811346
commit 3276263736
2 changed files with 3 additions and 1 deletions

View File

@ -529,6 +529,8 @@ class woocommerce_checkout {
$available_gateways[$this->posted['payment_method']]->validate_fields();
endif;
endif;
do_action( 'woocommerce_after_checkout_validation', $this->posted );
if (!isset($_POST['update_totals']) && $woocommerce->error_count()==0) :

View File

@ -138,7 +138,7 @@
<?php do_action( 'woocommerce_review_order_before_submit' ); ?>
<input type="submit" class="button alt" name="place_order" id="place_order" value="<?php _e('Place order', 'woothemes'); ?>" />
<input type="submit" class="button alt" name="place_order" id="place_order" value="<?php echo apply_filters('woocommerce_order_button_text', __('Place order', 'woothemes')); ?>" />
<?php if (get_option('woocommerce_terms_page_id')>0) : ?>
<p class="form-row terms">