Is there a solution to change the order of the cart columns without copying the file in my own template folder?
The reason is, that I don’t want to overwrite such a crucial template file.
Unfortunately, the order is hardcoded as table in the file cart.php
and not inside a function.
Is there in this case any “clean” way to change the order of the columns?
Advertisement
Answer
The only way is to override Woocommerce cart/cart.php template via your active theme as it’s hardcoded in the template.
Woocommerce template are made to be overridden so it’s not a big deal to do it.
The only annoying thing, is when templates files change in major updates, you will have to make your changes again if the template has been changed.