Ummm...... can you tell me the cmd then plz? A poem doesn't really help
Poem is actually on his Signature.
But also guys, Please refrain from answers that are near to pointless.
He is asking for the code to do it. If you don't give a valid answer, the original postee could give up, and it wouldn't help people who have the same issue.
Now, back to the original request.
As I do not know much about MadCommands, I can't be much of service for the code side. But here is an idea of how to run the shop.
Have a command like /villagershop.
Make a menu on that shop.
Assign command to a slapper.
Easier said than done.