How to add css class to specific rows base on fields in order commerce view page
Try this hook instead: MYTHEME_preprocess_views_view_table. Your view uses the Megarow table format. The hook you used is called for the list format.