0

In the checkout page, there is a review order table on the bottom. I want to remove the order review in checkout page. What is the remove action ?

2 Answers 2

0

Just add following code into your funtions.php

add_filter( ‘woocommerce_product_tabs’, ‘sb_woo_remove_reviews_tab’, 98);

function sb_woo_remove_reviews_tab($tabs) { 
unset($tabs[‘reviews’]);
return $tabs;
}
7
  • I want to remove the order review table in checkout page. not review tab. Commented Oct 31, 2015 at 12:40
  • In your plugin folder Go To woocommerce->includes->wc-template-functions.php Now press ctrl+f and write woocommerce_order_review and press enter. You will find a function of the same name. Just remove its body(portion that comes under{}) And its done.
    – Rishabh
    Commented Nov 2, 2015 at 5:33
  • Thank you. it works but is there a way like remove action to get the same result? Commented Nov 2, 2015 at 15:55
  • Sorry, i am not getting your point(remove action to get the same result).
    – Rishabh
    Commented Nov 3, 2015 at 6:11
  • I don't want to remove the code. I want the code to stay but i think there is a way to disable it. For example add_filter() or remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); Commented Nov 3, 2015 at 16:55
10

You can remove the order summary table like this:

remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 );

You could also copy the checkout/review-order.php template to your child theme, and modify it as desired.

1
  • 3
    This should be the accepted answer. Commented Oct 31, 2017 at 20:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.