Came across a problem in Drupal commerce today. We don’t allow for anonymous checkout, but do allow you to put things in your cart until then. Out of the box functionality is to simply remove the “checkout” button from the for which is normally next to the “update cart” button. Not super helpful.
We added a small amount of code to the header of the view to set up a standard alert message letting the poor user know that they must log in to proceed to the next step
So we went from this:
Configuration is as below