php - Duplicate Cart Totals on Woocommerce Checkout Page -
trying figure out why cart totals, cart subtotals, shipping, , coupons getting displayed twice on checkout page:
the problematic contents of review order page follows:
<?php do_action( 'woocommerce_review_order_before_order_total' ); ?> <div> <?php _e( 'cart subtotal: ', 'woocommerce' ); ?> <?php wc_cart_totals_subtotal_html(); ?><br> <?php foreach ( wc()->cart->get_coupons() $code => $coupon ) : ?> <?php wc_cart_totals_coupon_label( $coupon ); ?> <?php wc_cart_totals_coupon_custom( $coupon ); ?><br> <?php endforeach; ?> <?php foreach ( wc()->cart->get_fees() $fee ) : ?> <?php echo esc_html( $fee->name ); ?> <?php wc_cart_totals_fee_html( $fee ); ?><br> <?php endforeach; ?> <?php _e('cart total: ', 'woocommerce'); ?> <?php wc_cart_totals_order_total_html(); ?> </div> <?php do_action( 'woocommerce_review_order_after_order_total' ); ?>
if delete of above, goes away. if delete of "totals", remaining "totals" ones duplicated. think there in code causing duplication life of me can't figure out what. , weird thing use exact same code on cart page doesn't duplicated ?!?!?!?
i'd appreciate prompt on matter have deadline later today. guys assistance!
your duplicate coming either of 2 do_action(s). test removing do_action(s). go hunting add_action trigger.
Comments
Post a Comment