Conversation
supportHi, I need to show table for the title “Recurring Totals” where Subtotal, Tax, and Recurring Total will be the table rows on the checkout page. Can you guide me to edit the code of the plugin? I’m using Woocmmerce Subsctiption along with. Regards
Hello @ghulamjafar2 , you can add rows to the “Your Order” table by overriding the /wp-content/plugins/woocommerce/templates/checkout/review-order.php template. See this article about how to override a WooCommerce template in your theme or child theme. Alternatively, you can use any of the following action hooks to add a row to the “Your Order” table: woocommerce_review_order_after_cart_contents woocommerce_review_order_before_shipping woocommerce_review_order_after_shipping woocommerce_review_order_before_order_total woocommerce_review_order_after_order_total See this article in order to find other hooks available on the checkout page, or for examples on how to use them. These two methods (the template overriding or hooking into an action) will work alright regardless if the Multi-Step Checkout for WooCommerce plugin is activated on your website or not.
Thanks for your reply. I’m already using “review-order.php” in my child theme, but it does not work when the “Multi-Step Checkout for WooCommerce” plugin is active.
Will you try the following test: create a small website with WooCommerce and Multi-Step Checkout plugins installed, move the “review-order.php” template file to the theme and make a small change to it. You’ll see that the change shows up on the checkout page. There must be some other factors on your website that is causing the issue. Maybe some customizations to the WooCommerce, for example a filter added to the “wc_get_template_part”, “wc_get_template”, or the “wc_locate_template” hooks. Or maybe a conflict with another plugin on your website. Try changing the theme or deactivating the other plugins on the website until you find out what is the cause.
Hello @ghulamjafar2 , you can add rows to the “Your Order” table by overriding the /wp-content/plugins/woocommerce/templates/checkout/review-order.php template. See this article about how to override a WooCommerce template in your theme or child theme. Alternatively, you can use any of the following action hooks to add a row to the “Your Order” table: woocommerce_review_order_after_cart_contents woocommerce_review_order_before_shipping woocommerce_review_order_after_shipping woocommerce_review_order_before_order_total woocommerce_review_order_after_order_total See this article in order to find other hooks available on the checkout page, or for examples on how to use them. These two methods (the template overriding or hooking into an action) will work alright regardless if the Multi-Step Checkout for WooCommerce plugin is activated on your website or not.
Thanks for your reply. I’m already using “review-order.php” in my child theme, but it does not work when the “Multi-Step Checkout for WooCommerce” plugin is active.
Will you try the following test: create a small website with WooCommerce and Multi-Step Checkout plugins installed, move the “review-order.php” template file to the theme and make a small change to it. You’ll see that the change shows up on the checkout page. There must be some other factors on your website that is causing the issue. Maybe some customizations to the WooCommerce, for example a filter added to the “wc_get_template_part”, “wc_get_template”, or the “wc_locate_template” hooks. Or maybe a conflict with another plugin on your website. Try changing the theme or deactivating the other plugins on the website until you find out what is the cause.