Summarize:

Once your dog knows how to open the refrigerator, you want him to open it on command at a distance. First have him obey the command while you stand in front of the refrigerator. Then move farther away so he has to walk to the refrigerator to obey the command. Keep moving farther from the refrigerator until you are in a different room and out of eyesight of the refrigerator. This time you want to do the same thing with the second command. Open the refrigerator. While standing in front of the refrigerator, give the "Bring me a beer" command. Click and reward when he completes the task. Then repeat the task as you move farther and farther and into a different room. This last one is important. Although your dog may be able to put together that he has to open the refrigerator to get a beer, he will likely not remember to then go back and close the refrigerator. Practice having him complete this task just as you did with the previous tasks. Just don't forget to re-open the refrigerator each time he closes it. While standing near the refrigerator, give your dog each command in sequence. First "Open the fridge", then "Bring me a beer", then "Close the fridge". At first, reward him for each task completed. Then start rewarding him only when he finishes the last task. Keep giving the commands as you move into a different room. The final task is to train your dog to complete the "Bring me a beer" task without needing to provide the "Open the fridge" command. Stand in front of the refrigerator and give the "Bring me a beer" command. If you are lucky, he will almost immediately pulls the refrigerator open to get to the beers. If not, don't use the "Open the fridge" command. Instead, keep using the "Bring me a beer" command but train him to open the door first just as if the pulling the rope was the first part of the "Bring me a beer" command. Training your dog to close the refrigerator in the middle of the second task may be very confusing for your dog. If you insist that this is necessary, you will want to start training your dog to first pick up a beer, then close a door, and then bring the beer to you. You may find it is easier to give the "Bring me a beer" command and follow with a "Now close the fridge".
Teach your dog to open the refrigerator at a distance. Praise your dog when he brings you a beer. Train your dog to go back and close the door. Practice doing all three in sequence. Reward him when he completes the first two tasks with one command.