0

Is there possible chance of changing the WooCommerce "Add to Cart" button functionality or removing it and creating new button, inside the item page?

I found this code but it only replaces the button on the item itself and not in the item page

add_filter( 'woocommerce_loop_add_to_cart_link', 'replace_default_button' );
function replace_default_button(){
    return '<button>Text a Dealer</button>';
}

https://screenshotscdn.firefoxusercontent.com/images/5b7bf7ed-f1d5-4cc1-86e7-157970f10ea4.png

Edited by Stefan_1

1
Contributor
0
Replies
12
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.