There are many different errors in the code, and your question is not so clear. So you can:
1) To add an additional button (below the existing "add to cart" button):
add_action('woocommerce_after_shop_loop_item', 'replace_add_to_cart' );
function replace_add_to_cart() {
global $product;
echo '<br><a class="button" href="' . esc_attr( $product->get_permalink() ) . '">' . __( "Read more" ) . '</a>';
}
function.php ( ), .
.
2) , woocommerce_loop_add_to_cart_link
:
add_filter( 'woocommerce_loop_add_to_cart_link', 'replace_loop_add_to_cart_button', 10, 2 );
function replace_loop_add_to_cart_button( $button, $product ) {
return '<a class="button" href="' . $product->get_permalink() . '">' . __( "Read more" ) . '</a>';
}
function.php ( ), .
.