help with - 2 digit 7 segment display and 2 74hc595

Your code is written for two SEPARATE 7-segment displays, each driven by a separate shift register. That two-digit display is a 2x8 matrix. You have to drive it like a matrix.