After checkout validation hook + place order filter
This commit is contained in:
parent
8b4e811346
commit
3276263736
|
@ -529,6 +529,8 @@ class woocommerce_checkout {
|
||||||
$available_gateways[$this->posted['payment_method']]->validate_fields();
|
$available_gateways[$this->posted['payment_method']]->validate_fields();
|
||||||
endif;
|
endif;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
do_action( 'woocommerce_after_checkout_validation', $this->posted );
|
||||||
|
|
||||||
if (!isset($_POST['update_totals']) && $woocommerce->error_count()==0) :
|
if (!isset($_POST['update_totals']) && $woocommerce->error_count()==0) :
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_review_order_before_submit' ); ?>
|
<?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) : ?>
|
<?php if (get_option('woocommerce_terms_page_id')>0) : ?>
|
||||||
<p class="form-row terms">
|
<p class="form-row terms">
|
||||||
|
|
Loading…
Reference in New Issue