Also, if your dead battery is less than 3 years old you may be able to get credit for any remaining months left on the warranty. Check the date sticker on the battery.
Costco and Walmart are my favorite battery vendors, in that order. When I pick the battery, myself I get the newest battery based upon the date code.
If you are planning to change it, yourself, you will need to relearn window operation. See your owner's manual for details. If a dealership changes the battery, they should do this for you.