Kasse – review-order Table anpassen
-
Hallo zusammen,
ich habe ein Problem mit der Kassenseite:
I’m using the divi theme builder with woocommerce and the germanized plugin. I’m trying to redesign the table ‘review-order’ in order to display separate rows for product, single price, quantity and subtotal.
For starters, I tried to add the quantity row. This is what I did:
defined( 'ABSPATH' ) || exit; ?> <table class="shop_table woocommerce-checkout-review-order-table"> <thead> <tr> <th class="product-name"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th> <th class="product-quantity"><?php esc_html_e( 'quantity', 'woocommerce' ); ?></th> <th class="product-total"><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></th> </tr> </thead> <tbody> <?php do_action( 'woocommerce_review_order_before_cart_contents' ); 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 ); if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ) ) { ?> <tr class="<?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>"> <td class="product-name"> <?php echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) ) . ' '; ?> <?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <?php echo wc_get_formatted_cart_item_data( $cart_item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </td> <td class="product-quantity"> <?php echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) ) . ' '; ?> <?php echo apply_filters ('woocommerce_checkout_cart_item_quantity' ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </td> <td class="product-total"> <?php echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </td> </tr> <?php } }
Ich habe au?erdem das Checkout-Template aus Germanized entsprechend versucht anzupassen. Beides führte nicht zum Erfolg. Die Kassenseite zeigt keine ?nderungen.
Cache is cleared, I also added theme support to my funktions.php in my child theme.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Kasse – review-order Table anpassen’ is closed to new replies.