the OP is the customer and in other supermarkets (LULU, C4, megamart, etc) they allow to deposit filled trolleys so the customer could continue to see other sections in the building.

Lulu Hyper, Carrefour, Megamart does that.

However, with the OP's situation, he's also at fault.

He should have:

-checked the business hours before leaving his cart.
-if he has that deposit token and proof/receipt, it wouldn't have caused any problem.
- I think the OP did/said something NOT NICE (I'm only assuming)which made the staff and security hesitant to help.

That's why I am asking the OP, how did you approach the staff about the issue?