woocommerce_after_add_to_cart_button

woocommerce_after_add_to_cart_button

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.4.2

do_action('woocommerce_after_add_to_cart_button') is found 4 times:

  • /templates/single-product/add-to-cart/external.php line 29

    Warning: Undefined array key 32 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 33 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 34 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    	<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( $button_text ); ?></button>
    
    	<?php wc_query_string_form_fields( $product_url ); ?>
    
    	<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    </form>
    
    <?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
    
    
    
    
  • /templates/single-product/add-to-cart/grouped.php line 122

    Warning: Undefined array key 127 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    		<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
    
    		<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' ); ?>
    
    	<?php endif; ?>
    </form>
    
    <?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
    
    
  • /templates/single-product/add-to-cart/simple.php line 51

    Warning: Undefined array key 56 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    		?>
    
    		<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>
    
    	<?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
    
    <?php endif; ?>
    
    
  • /templates/single-product/add-to-cart/variation-add-to-cart-button.php line 33

    Warning: Undefined array key 38 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    	?>
    
    	<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' ); ?>
    
    	<input type="hidden" name="add-to-cart" value="<?php echo absint( $product->get_id() ); ?>" />
    	<input type="hidden" name="product_id" value="<?php echo absint( $product->get_id() ); ?>" />
    	<input type="hidden" name="variation_id" class="variation_id" value="0" />
    </div>
    
    

See this hook used in plugins:

Examples using woocommerce_after_add_to_cart_button