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.8.7.0

do_action('woocommerce_after_add_to_cart_quantity') is found 3 times:

  • /templates/single-product/add-to-cart/grouped.php line 81
    										'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
    				'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
    			'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' ); ?>