WooCommerce Change Add To Cart Button to Always Show Products Page First
Tweet Follow @3pixelssolution/* replace add to cart text on button*/
add_action( ‘woocommerce_after_shop_loop_item’, ‘my_woocommerce_template_loop_add_to_cart’, 10 );
function my_woocommerce_template_loop_add_to_cart() {
echo ‘<form action=”‘ . get_permalink() . ‘” method=”get”>
<button type=”submit” class=”single_add_to_cart_button button alt”>Read More</button>
</form>’;
}