Action woocommerce_before_variations_form

Added action `woocommerce_before_variations_form` to hook before the variations dropdowns
This commit is contained in:
Nicola Mustone 2015-04-15 15:26:46 +02:00
parent a344fae67f
commit c8f8ee33be
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ global $product, $post;
<?php do_action( 'woocommerce_before_add_to_cart_form' ); ?>
<form class="variations_form cart" method="post" enctype='multipart/form-data' data-product_id="<?php echo $post->ID; ?>" data-product_variations="<?php echo esc_attr( json_encode( $available_variations ) ) ?>">
<?php do_action( 'woocommerce_before_variations_form' ); ?>
<?php if ( ! empty( $available_variations ) ) : ?>
<table class="variations" cellspacing="0">
<tbody>