If basket of goods was priced in gold rather than dollars - then its price would also be more stable.
There have been centuries when gold was legal tender and nobody complained (apart from some emperors who found debasing gold coins by adding copper was a bit difficult; but printing press has not been invented yet).