New `is_view_order_page` conditional function

Returns true when on the `my-account/view-order/` page
Add check for my account page too
Fix brackets
Merge pull request #7022 from bryceadams/patch-7018

New `is_view_order_page` conditional function