# Separate the add to cart button from the variant selector

**URL:** <https://community.wpbeaverbuilder.com/t/separate-the-add-to-cart-button-from-the-variant-selector/20093>\
**Category:** Beaver Builder\
**Created:** [April 17, 2026, 7:33pm UTC](https://community.wpbeaverbuilder.com/t/separate-the-add-to-cart-button-from-the-variant-selector/20093 "2026-04-17T19:33:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chops56](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/c/4bbf92/32.png) [@Chops56](https://community.wpbeaverbuilder.com/u/Chops56)\
**Post date:** [April 17, 2026, 7:33pm UTC](https://community.wpbeaverbuilder.com/t/separate-the-add-to-cart-button-from-the-variant-selector/20093/1 "2026-04-17T19:33:31Z")

</div>

I have an html module that needs to go between the variant selector and the add to cart button. Any ideas?

---

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [April 20, 2026, 12:28pm UTC](https://community.wpbeaverbuilder.com/t/separate-the-add-to-cart-button-from-the-variant-selector/20093/2 "2026-04-20T12:28:08Z")

</div>

Yes, 1st google this “wordpress action after variation” you’ll find a SE ppost from 11 years ago with the answer

> <https://stackoverflow.com/questions/28000640/insert-after-variations-via-woocommerce-hook-filter>

So the action you need is `woocommerce_before_add_to_cart_button` and an example might be

```auto
add_action( 'woocommerce_before_add_to_cart_button', function () {
    echo do_shortcode( '[fl_builder_insert_layout id=5705]' );
});

```

Where `5705` would be the ID of your saved HTML module.

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [May 4, 2026, 1:48pm UTC](https://community.wpbeaverbuilder.com/t/separate-the-add-to-cart-button-from-the-variant-selector/20093/3 "2026-05-04T13:48:47Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
