Use a case statement
Remove the hashrocket
Use interpolation for the path
Add forgotten checkouts check to the transactions sorting