woocommerce_widget_shopping_cart_button_view_cart

Output the proceed to checkout button.

Description

woocommerce_widget_shopping_cart_button_view_cart(); 

Usage

  1. if ( !function_exists( 'woocommerce_widget_shopping_cart_button_view_cart' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_widget_shopping_cart_button_view_cart(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_widget_shopping_cart_button_view_cart() { 
  2. echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="button wc-forward">' . esc_html__( 'View cart', woocommerce ) . '</a>';