woocommerce_cart_totals

Output the cart totals.

Description

woocommerce_cart_totals(); 

Usage

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

Defined (1)

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

/includes/wc-template-functions.php  
  1. function woocommerce_cart_totals() { 
  2. if ( is_checkout() ) { 
  3. return; 
  4. wc_get_template( 'cart/cart-totals.php' );