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
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;
}
-
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.– RishabhCommented 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).– RishabhCommented 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
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.
-
3