This PHP code for WooCommerce enables you to change the button text and button url conditionally. In this example, the add to cart button on shop page products link to their single product page rather than the default which is the cart.
Add the PHP code to your child themes functions file.
Reviews
There are no reviews yet.