{# # Mini Cart / Cart Widget (Bootstrap 5 Override) # # Renders the mini cart as an offcanvas slide-in panel. # # Expected context: # cart_items - Array from WC()->cart->get_cart() # cart_is_empty - Whether cart is empty # cart_subtotal - Cart subtotal HTML # args - Widget arguments (list_class) # # WooCommerce PHP equivalent: cart/mini-cart.php # # @package WcBootstrap # @since 0.1.0 #} {{ do_action('woocommerce_before_mini_cart') }} {% if not cart_is_empty|default(true) %}
{{ do_action('woocommerce_widget_shopping_cart_total') }}

{{ __('Subtotal:') }} {{ cart_subtotal|raw }}

{{ do_action('woocommerce_widget_shopping_cart_before_buttons') }}
{{ do_action('woocommerce_widget_shopping_cart_buttons') }}
{{ do_action('woocommerce_widget_shopping_cart_after_buttons') }} {% else %}

{{ __('No products in the cart.') }}

{% endif %} {{ do_action('woocommerce_after_mini_cart') }}