__( 'Woocommerce Dropdown Cart', 'qode' ), ) // Args ); } public function widget( $args, $instance ) { global $post; extract( $args ); echo $before_widget; global $woocommerce; global $qode_options_proya; $cart_holder_class = 'header_cart'; if (isset($qode_options_proya['woo_cart_type'])){ $cart_type = $qode_options_proya['woo_cart_type']; switch ($cart_type) { case 'font-elegant': $cart_holder_class = "header_cart cart_icon"; break; default: $cart_holder_class = "header_cart"; break; } } ?>
cart->cart_contents_count; ?>
cart->get_cart() ) <= 0; $list_class = array( 'cart_list', 'product_list_widget' ); ?>
    cart->get_cart() as $cart_item_key => $cart_item ) : $_product = $cart_item['data']; // Only display if allowed if ( ! $_product->exists() || $cart_item['quantity'] == 0 ) { continue; } // Get price $product_price = get_option( 'woocommerce_tax_display_cart' ) == 'excl' ? $_product->get_price_excluding_tax() : $_product->get_price_including_tax(); $product_price = apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_price ), $cart_item, $cart_item_key ); ?>
  • cart->get_item_data( $cart_item ); ?> ' . sprintf( '%s × %s', $cart_item['quantity'], $product_price ) . '', $cart_item, $cart_item_key ); ?>
cart->get_cart() ) <= 0 ) : ?> :cart->get_cart_subtotal(); ?> cart->get_cart() ) <= 0 ) : ?>
cart->cart_contents_count; ?>