Potatoes and onions can last for months but they should be stored in a cool dry environment. One week is a short time for them to start to go bad. Try to buy the freshest produce available. I grow varieties that have good storage qualities. Red Norlands, Kennebecs and Yukon Golds all store well for me.