Move TFOOT to after TBODY element throughout templates and classes
set cookies on shutdown in case of redirect.
Merge pull request #5833 from CFXd/move-tfoot-after-tbody-multiple-occurences

Move TFOOT to after TBODY element throughout templates and classes
wc_price filters suggested in #5664

Closes #5664