Stefce 146 Posting Pro

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

Be a part of the DaniWeb community

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