cart->get_cart(); foreach ($cart as $cart_item_key => $cart_item) : $_product = apply_filters('woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key); if ($_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters('woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key)) : $product_name = apply_filters('woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key); $product_price = apply_filters('woocommerce_cart_item_price', WC()->cart->get_product_price($_product), $cart_item, $cart_item_key); ?> cart->get_coupons(); ?> $coupon) : ?> cart->needs_shipping() && WC()->cart->show_shipping()) : ?> cart->get_fees(); ?> cart->display_prices_including_tax()) : ?> cart->get_tax_totals(); foreach ($taxs as $code => $tax) : ?>
get_image('thumbnail'), $cart_item, $cart_item_key); ?> ' . sprintf('%s', $cart_item['quantity']) . '', $cart_item, $cart_item_key); ?>
' . sprintf(' × %s', $cart_item['quantity']) . '', $cart_item, $cart_item_key ); endif; ?> is_sold_individually()) : $min_quantity = 1; $max_quantity = 1; else : $min_quantity = 0; $max_quantity = $_product->get_max_purchase_quantity(); endif; $product_quantity = woocommerce_quantity_input( array( 'input_name' => 'cart[' . $cart_item_key . '][qty]', 'input_value' => $cart_item['quantity'], 'max_value' => $max_quantity, 'min_value' => $min_quantity, 'product_name' => $product_name ), $_product, false ); echo apply_filters('woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item); // PHPCS: XSS ok. endif; ?>
cart->get_product_subtotal($_product, $cart_item['quantity']), $cart_item, $cart_item_key); ?>
name); ?>
label); ?> formatted_amount); ?>
countries->tax_or_vat()); ?>