# Change add to cart behavior button with active themer layout

**URL:** <https://community.wpbeaverbuilder.com/t/change-add-to-cart-behavior-button-with-active-themer-layout/15489>\
**Category:** Beaver Themer\
**Tags:** bb-theme, beaver-themer, beaver-builder\
**Created:** [January 20, 2022, 4:10pm UTC](https://community.wpbeaverbuilder.com/t/change-add-to-cart-behavior-button-with-active-themer-layout/15489 "2022-01-20T16:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego-s](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/d/a5b964/32.png) [@Diego-s](https://community.wpbeaverbuilder.com/u/Diego-s)\
**Post date:** [January 20, 2022, 4:10pm UTC](https://community.wpbeaverbuilder.com/t/change-add-to-cart-behavior-button-with-active-themer-layout/15489/1 "2022-01-20T16:10:10Z")

</div>

Hello BB Builders,

I already have a woocommerce single product theme layout, but i want to change the add to cart button, for example if price is 0, or if a product have stock, using code like this:

```auto
add_filter('woocommerce_get_price_html', 'requestQuote', 10, 2);

function requestQuote($price, $product) {
        if ( $price == wc_price( 0.00 ) ){
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 );
remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
                 return "<div class='elementor-button-wrapper'>
			<a href='######' class='button-link size-sm' role='button'>
						<span class='button-content-wrapper'>
						<span class='button-text'>Request Quote</span>
		</span>
					</a>
		</div>";
        }
        else{
            return $price;
		}
}

```

if i disable themer layout for single product, it works.

then i want to know how to make this, but without losing themer layout desing

thank you
