by Eric Messick.
Hi Stéphane. I had a good look at your tutorials and your test site for Prestashop and Suite CRM but am stuck. I'm wanting customers to gain access to my Moodle courses when they buy courses through Magento. Here is where I am struggling:- When trying to make rules I am getting confused with where the field names come from for source and target. Are these from the databases? Is there somewhere I can look to easily see how these field names relate to the data that I can see in Moodle/Magento?
- For "relationships," in my source column (for magento) drop-down menus there are two options: "ID orders" and "Customer ID.""Customer ID" is listed as a possible field for the rule, but "ID orders" is not. Where are these field names from..or is this a bug?
- Some field names in the target have stars next to them (E.g., email, firstname, lastname, username in Moodle), is that because these are required fields?
- When I click on "create formula" when making a rule, and then click on the target drop-down menu, I have only one field (auth) and its data options for Moodle as a target...seems like the drop-down should have all fields...is that a bug?
- I don't understand how "relationships" work. I think this is what I need to do to link orders with customers like in your test server. Seems like I need some unique identifier for items purchases...probably the SKU. So thinking that Myddleware would use a rule to detect a new order and pass the customer and SKU to the right fields in moodle so that the customer gets enrolled in the course identified by the SKU.
- If you have any Moodle/Magento working examples of rules then that would be helpful. The screenshot of the rule you sent me earlier was really helpful in making formulae (thanks).
Best,
Eric