I need someone to edit the code of a CouchCMS project I have worked on with another programmer in the past, that doesn't have the time to keep working on the project anymore.
For those who don't know, CouchCMS is an open source CMS, that allow people that doesn't really know how to code to add super simple CMS to any websites easily.
But there's the possibility to create custom addons with regular PHP, and that's where I will need your help.
If you don't know CouchCMS from the start, you might have some issues finding how to do some stuff. But in short, the project acts as a simple portal where a user can enter his name, email and a code that is generated by the CMS, to access a particular page. The page is generated within the CMS backend, and you can associate thousands of codes if needed to it.
The CMS already has a fonction to generate X number of codes for a specific page.
What I need, is to add a shopping cart to the site, allowing the users to buy a "video", and once the transaction if complete on Paypal, it must generate a code in the backend (with CouchCMS) automatically, and send an email to thank the user for buying the video, putting the code generated specifically for that user in the email body.
Basically, it's the same concept as when you buy gift card on the web, and that you receive a serial code by email that you can use afterward.
Codes are randomly generated in the backend, so the code already takes care of the "make sure there's no code duplicate" part.