woocommerce_after_add_to_cart_quantity

woocommerce_after_add_to_cart_quantity

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_after_add_to_cart_quantity') is found 4 times:

  • /src/Blocks/BlockTypes/AddToCartWithOptions.php line 163
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    * Hook: woocommerce_after_add_to_cart_quantity.
     *
     * @since 2.7.0
     */
    do_action( 'woocommerce_after_add_to_cart_quantity' );
    /**
     * Hook: woocommerce_after_add_to_cart_button.
     *
     * @since 1.5.0
     */
    do_action( 'woocommerce_after_add_to_cart_button' );
  • /templates/single-product/add-to-cart/grouped.php line 99
    095
    096
    097
    098
    099
    100
    101
    102
    103
    104
    105
                    'placeholder' => '0',
                )
            );
     
            do_action( 'woocommerce_after_add_to_cart_quantity' );
        }
     
        $value = ob_get_clean();
        break;
    case 'label':
        $value  = '<label for="product-' . esc_attr( $grouped_product_child->get_id() ) . '">';
  • /templates/single-product/add-to-cart/simple.php line 46
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
                'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( wp_unslash( $_POST['quantity'] ) ) : $product->get_min_purchase_quantity(), // WPCS: CSRF ok, input var ok.
            )
        );
     
        do_action( 'woocommerce_after_add_to_cart_quantity' );
        ?>
     
        <button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="single_add_to_cart_button button alt<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
     
        <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    </form>
  • /templates/single-product/add-to-cart/variation-add-to-cart-button.php line 28
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
            'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( wp_unslash( $_POST['quantity'] ) ) : $product->get_min_purchase_quantity(), // WPCS: CSRF ok, input var ok.
        )
    );
     
    do_action( 'woocommerce_after_add_to_cart_quantity' );
    ?>
     
    <button type="submit" class="single_add_to_cart_button button alt<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
     
    <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>