Here's how I solved this:
- I was already using tiny content for another block, so I had to install the duplicatable hack by chapi so I could have 2 instances of tiny content. Great Hack chapi!
- The first page I created was a simple products.html. This is the homepage for the 'store'. It's just a simple html wrapped into tiny content.
--- For the order part I wrapped formmail.v50 which can be found
here- The second page is the ORDER submenu item. This is also a html page that's been wrapped into tiny content. Here's
mine- This html links to a php script that's in the same directory. Here's
mineThis php file doesn't have to be wrapped in tiny content.
- The way I set it up, it will report the XOOPS username in the emails it sends.
- If the order was correctly placed it will redirect to a page I called sucesso.html, which basicly says the order was sucessfull. Here's
mineI made this module only acessible by registered users. I then created a block for the top page viewable by all users anouncing a new store and that you have to register to see it.
- There are a couple of options you will need to custimize on order page (encomendas.html if your using my file):
line 19- REQUIRE this makes certain text fields mandatory
line 20- REDIRECT this redirects your users if the order was sucessfull
line 21- EMAIL the email to which you want the order sent
line 22- SORT this sorts the order on the email.
- on formmail.php there is something which you might also want to change:
line 389- You should change the text to 'Registered User'. Below this will show the name of the registered user on the email.
For me it works great, but then again I only have 3 products