Stefan_1 96 Posting Pro in Training

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>';

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.