Can’t modify review-order.php template along with form-checkout.php
-
I’m not sure if this is an issue or by design. I’m working on a custom checkout template. All the files are in the child theme’s
/woocommerce/checkout
directory.I easily modified form-checkout.php. In this file first I removed order review:
remove_action('woocommerce_checkout_order_review', 'woocommerce_order_review', 10);
Then added this function in the right place where I need it:
woocommerce_order_review();
So far, so good. Everything works.
Now, I wanted to make a few modifications to review-order.php template. So I copied file to my child theme’s
/woocommerce/checkout
directory. But it doesn’t work. Changes inside this file do not work.On the status page, I can see review-order.php is listed in the Overrides section. Yet, it’s not working.
If I disable form-checkout.php, then review-order.php template begins to work. This also happens if I comment remove_action woocommerce_order_review(), so it defaults to the original implementation.
Is this by design? Or am I missing something? Would appreciate any info.
WP 5.7.1
Woo 5.2.2
- The topic ‘Can’t modify review-order.php template along with form-checkout.php’ is closed to new replies.