I think you will need to create a custom module that displays the old orders in the CMS, assuming the orders is a MySQL table, etc.
and possibly storing info in doc xml?
-
☆ A M B ☆
- 24,524 Posts
You can store the order data in any way you like, but using the database would be easiest as well as most secure. In any case, you’ll need to make a snippet to extend eForm to save the data, and a module to allow access to the data.
@sottwell
Do you know if these snippets / modules already exist?
1. Save information into a custom table with something like EformDb(you should also have a field that holds the customer ID)
2. Create a snippet that will display all the information in the database for the logged in customer. This is just a simple modx page protected by login which you already know how to do and has a call to the snippet. A simple display of the orders should be enough.
This is nothing major in my opinion.
PS: I do not think there is a need for a module in this case.
-
☆ A M B ☆
- 24,524 Posts
PS: I do not think there is a need for a module in this case.
I would be very uncomfortable with a custom table and no way to access it (except raw through phpMyAdmin or whatever). Modules aren’t any more difficult than snippets. In some ways, they’re easier since you can use inline PHP if you want to; or you can use runSnippet() if you want to use an existing snippet’s code.
http://www.sottwell.com/create-module.html
@sottwell & @Cipa
I get the impression this is something that should be quite easy to do but not exactly sure as my php in v basic.
I have read up on EformDb and it looks like its exactly what i need to add info to the database but the the logic needed to extract/query that data to display customer specific data is beyond me (at the moment), are there any tutorials or working examples out there because i have been looking but can see them?
This is something i really need to get working and would really appreciate any help