Mitch Mitchell, 30, stole the glasses worth £260 from Boots Opticians in Lymington.
Mitchell admitted a single count of theft from a shop at Southampton Magistrates’ Court.
His address was recorded as HMP Winchester.
READ MORE: Southampton Co-op: £1,000 tobacco and cigarettes theft
The Saint Laurent sunglasses were taken on June 20 from the High Street store.
Magistrates ordered him to pay compensation of £260 at a hearing on August 24.
No order was made for court costs or a victim surcharge.
The compensation must be paid in full by September 21.