Reply 235632 to: Checkout minicart link change

Avatar: Rose Tyler
Rose Tyler
Support staff
May 4, 2020 at 15:52

Hello,

Try to use the next code in functions.php of your child theme:

add_action('wp', 'etheme_custom_template_hooks', 70);

function etheme_custom_template_hooks() {
	remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_proceed_to_checkout', 20 );
	add_action( 'woocommerce_widget_shopping_cart_buttons', 'et_woocommerce_widget_shopping_cart_proceed_to_checkout', 20 );
}

function et_woocommerce_widget_shopping_cart_proceed_to_checkout() {
	echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="button checkout wc-forward">' . esc_html__( 'Cart', 'woocommerce' ) . '</a>';
}

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.