This code retrieves the total cost of all items in the WooCommerce cart. WC()->cart->get_cart_contents_total() is a function that computes the total cost of the items in the cart by adding the individual item costs together. The result is stored in the variable $cart_total.
Was this code snippet helpful?
YesNo