woocommerce mini cart

Solutions on MaxInterview for woocommerce mini cart by the best coders in the world

showing results for - "woocommerce mini cart"
Youcef
02 May 2017
1function custom_mini_cart() { 
2    echo '<a href="#" class="dropdown-back" data-toggle="dropdown"> ';
3    echo '<i class="fa fa-shopping-cart" aria-hidden="true"></i>';
4    echo '<div class="basket-item-count" style="display: inline;">';
5        echo '<span class="cart-items-count count">';
6            echo WC()->cart->get_cart_contents_count();
7        echo '</span>';
8    echo '</div>';
9    echo '</a>';
10    echo '<ul class="dropdown-menu dropdown-menu-mini-cart">';
11        echo '<li> <div class="widget_shopping_cart_content">';
12                  woocommerce_mini_cart();
13            echo '</div></li></ul>';
14
15      }
16       add_shortcode( '[custom-techno-mini-cart]', 'custom_mini_cart' );
17
Elisa
21 Jan 2021
1 <?php echo do_shortcode(['custom-techno-mini-cart']); ?>
2