WooCommerce - Checkout link (when cart is not empty)
global $woocommerce; | |
if ( sizeof( $woocommerce->cart->cart_contents) > 0 ) : | |
echo '<a href="' . $woocommerce->cart->get_checkout_url() . '" title="' . __( 'Checkout' ) . '">' . __( 'Checkout' ) . '</a>'; | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment