WordPress action hook
woocommerce_after_add_to_cart_quantity
Defined by WooCommerce and fired by 38 plugins in total, running on 7M+ sites between them.
“Hook: woocommerce_after_add_to_cart_quantity.”
How to use woocommerce_after_add_to_cart_quantity
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_after_add_to_cart_quantity', function() {
// Your code runs here.
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
38 plugins that fire woocommerce_after_add_to_cart_quantity
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_add_to_cart_quantity' )src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php:472 -
Request a Quote for WooCommerce6,000+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )woo-templates/single-product/add-to-cart/grouped.php:85 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/templates/wcdp_step_1.php:172 -
Art WooCommerce Order One Click4,000+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/add-to-cart/single/simple-normal.php:48 -
CoDesigner4,000+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )widgets/product-add-to-cart/templates/grouped.php:80 -
Flexible Subscriptions1,000+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/subscription.php:45 -
Omnipress700+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/add-to-cart/group.php:96 -
Better Usability for WooCommerce700+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-add-cart-ajax.php:56 -
ShopPress600+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )public/templates/woocommerce/single-product/add-to-cart/grouped.php:78 -
XT Variation Swatches for WooCommerce500+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )public/templates/variable.php:211 -
WPC Variations Table for WooCommerce500+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )wpc-variations-table.php:1612 -
StoreBuild400+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )public/woocommerce/single-product/add-to-cart/grouped.php:87 -
Food Online for WooCommerce300+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/woocommerce/single-product/add-to-cart/simple.php:46 -
Visual Builder200+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )inc/woocommerce/single-product/add-to-cart/grouped.php:167 -
Shopready100+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )src/extension/elewidgets/widgets/product/template-parts/add_to_cart/types/grouped.php:79 -
Raffle for WooCommerce100+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/raffle.php:228 -
AMP WooCommerce90+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/grouped.php:60 -
Premmerce Variation Swatches for WooCommerce90+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )views/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php:26 -
B2B Request a Quote40+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/public/views/quote-out-of-stock.php:77 -
Leat30+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )src/Application/Services/GiftcardProductType.php:397 -
Add to Cart Button Labels & Links for WooCommerce10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/woocommerce/single-product/add-to-cart/grouped.php:80 -
Peleman Webshop Plugin10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/woocommerce/simple.php:48 -
DesignO10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/simple.php:46 -
Step-By-Step Ordering System for WooCommerce10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )woocommerce/single-product/add-to-cart/grouped.php:79 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )temp/product/cart/subscription.php:45 -
Guto Toolkit for Elementor Addons10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/guto-toolkit-plugin-functions.php:363 -
Template Builder Elementor10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/elementor/widgets/woocommerce/templates/addtocart/tmpenvo-groupedproduct.php:56 -
QODE Product Bundles for WooCommerce10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/qode-bundle-product.php:106 -
Catna10+ installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/templates/smart-offers.php:85 -
FoodMaster LiteFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/modal/add-to-cart/simple.php:42 -
Codeholt Bundles for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/bundle.php:114 -
MysterxFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/mysterx.php:43 -
ReservingFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )app/extensions/frontend/product/Product_Grid.php:242 -
GiftlarkFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )includes/class-gvgc-product.php:341 -
BrainlessITC Gift Cards for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/single-product/add-to-cart/bitcgc-gift-card.php:172 -
PriceBlueprint Attribute Pricing for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/add-to-cart.php:30 -
Booking WorksFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )templates/wp_ca_rentable_items.php:782 -
WT Variation Bulk OrderFewer than 10 installs
do_action( 'woocommerce_after_add_to_cart_quantity' )public/templates/variation-bulk-order-table/wtvbo-tb-items.php:32
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.