Following the appeal judges' decision advocate depute Ashley Edwards asked them to re-impose the community payback order on O'Connor, which had been suspended.
The prince was asked for a donation to the mountain rescue charity by builder Ashley Gill, who found the collection box buried in silt while clearing the Black Bull pub in the town.