To hide the lamps cords in this scenario (and many others) I used 3M Command Decorating Clips:
To get the cords to stay tucked out of sight, I place hooks along the back side of the console legs. I position the hooks in an alternating pattern in terms of what direction the clip opening faces because this seems to keep the cord straighter.
If you have a trickier situation that requires lamp cords to be more conspicuous, it might be worth upgrading the cord to a swankier cloth-covered wire. It's more charming that the typical plastic-covered ones and slightly more discreet as well. Sundial Wire has lots of color options and be sure to check your local lamp shop about what they keep in stock too.