Consumer Law in Spain Help.....

Can anyone Help me on Consumer Law in Spain
Not for me, I am helping a freinds son who purchased a Olypmus Utough 6020 in Gibraltad december 2010 goes to 5m waterproof, unfortunatly he paid cash and he can't find receipt
TheyLive in Spain, he used it in May in a swimming pool, depth 2.6m, he was taken pictures andthen it stopped working, it switches on but everything stays Black, no data saved it hasnt worked since
Olympus say wont repair without a reecipt.
in UK you do not have to provide a recipt under the terms of the Sales of Gooda Act 1979. The Item would be Not fit for purppose.
spoken to the small claims court in Gibraltar , they said because he is a resident of Spain persue Olumpus through the spanish coutt system
I am looking for their version of Sales of Goods Act, Any help or advise gratefuly accepted Barryjohnwebb.