Hi,
I want to redirect the add to the cart button to the product detail page.
I am using this code
add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘replacing_add_to_cart_button’, 10, 2 );
function replacing_add_to_cart_button( $button, $product ) {
$button_text = __(“Info/Bestellen”, “woocommerce”);
$button = ‘get_permalink() . ‘”>’ . $button_text . ‘‘;
return $button;
}
However, the button disappears. I am using “Show summary on hover’
How can i fix this? And is (and how ;)) it possible to place in the summary only the SKU.
Many thanks. Peter