cart->get_cart() as $cart_item_key => $cart_item ) { $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); /** * Filter whether this cart item is visible in the checkout review order table. * * @since 2.1.0 * @param bool $visible Whether the cart item is visible. Default true. * @param array $cart_item The cart item data. * @param string $cart_item_key The cart item key. */ $visible = apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ); if ( $_product instanceof WC_Product && $_product->exists() && $cart_item['quantity'] > 0 && $visible ) { ?> cart->get_coupons() as $code => $coupon ) : ?> cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> cart->get_fees() as $fee ) : ?> cart->display_prices_including_tax() ) : ?> cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
cart->get_item_product_name( $cart_item, $_product ); /** * This filter is documented in woocommerce/templates/cart/cart.php. * * @since 2.1.0 */ $product_name = apply_filters( 'woocommerce_cart_item_name', $cart_item_name, $cart_item, $cart_item_key ); ?> ' . sprintf( '× %s', $cart_item['quantity'] ) . '', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
name ); ?>
label ); ?> formatted_amount ); ?>
countries->tax_or_vat() ); ?>