PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/eastfin/wp-content/themes/kingdom/woocommerce/cart/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/eastfin/wp-content/themes/kingdom/woocommerce/cart/mini-cart.php |
<?php /** * Mini-cart * * Contains the markup for the mini-cart, used by the cart widget * * @author WooThemes * @package WooCommerce/Templates * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce; ?> <?php do_action( 'woocommerce_before_mini_cart' ); ?> <div class="cart-details"> <i class="icon icon_arrow-cart"></i> <ul class="kd_small_cart_items"> <?php if ( sizeof( WC()->cart->get_cart() ) > 0 ) : ?> <?php foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ) ) { $product_name = apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ); $product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); ?> <li data-prodid="<?php echo esc_attr( $cart_item_key );?>"> <div class="kd_cart_item-image"> <a href="<?php echo esc_url( get_permalink( $product_id ) ); ?>"> <?php echo str_replace( array( 'http:', 'https:' ), '', $thumbnail ) . $product_name; ?> </a> </div> <div class="kd_cart_item-details"> <h2><a href="<?php echo esc_url( get_permalink( $product_id ) ); ?>"><?php echo $product_name;?></a></h2> <p> <span class="kd_qty"><?php echo sprintf( esc_html__( 'Quantity: %s', 'woocommerce' ), $cart_item['quantity']) ;?></span> </p> <p> <?php esc_html_e( 'Price', 'woocommerce' ); ?>: <span class="kd_price"><?php echo $product_price;?></span> </p> <a href="<?php echo WC()->cart->get_remove_url( $cart_item_key );?>" class="kd_cart_item-close-btn" data-toggle="tooltip" title="<?php esc_html_e( 'Delete', 'woocommerce' ); ?>"><i class="icon icon_delete"></i></a> </div> </li> <?php } } ?> <?php else : ?> <li class="empty"><?php esc_html_e( 'No products in the cart.', 'woocommerce' ); ?></li> <?php endif; ?> </ul> <?php if ( sizeof( WC()->cart->get_cart() ) > 0 ) : ?> <div class="kd_cart_total"> <?php esc_html_e( 'Subtotal', 'woocommerce' ); ?>: <span><?php echo WC()->cart->get_cart_subtotal(); ?></span> </div> <div class="kd_add_to_cart"> <a class="btn btn_checkout" href="<?php echo WC()->cart->get_checkout_url(); ?>" role="button"><?php esc_html_e( 'Checkout', 'woocommerce' ); ?></a> <a class="btn btn_viewcart" href="<?php echo WC()->cart->get_cart_url(); ?>" role="button"><?php esc_html_e( 'View Cart', 'woocommerce' ); ?></a> </div> <?php endif; ?> </div> <?php do_action( 'woocommerce_after_mini_cart' ); ?>