removed not defined $wp variable in favor to get_query_var() function
added method to check if order needs shipping in "pay for order" page
Merge pull request #5374 from claudiosmweb/fix-cod-in-pay-for-order-page

Improved the COD