Matrix Version: 5.5.2
We are setting up a subscription-based site with a few different levels of access.
Our ideal/planned process flow is:
- User selects desired level of access
- If user is not logged in already, they are prompted to either login or create a free account to place an order
- Goes through Checkout / Payment Gateway
- User’s account is moved to the User-Group for their level of access
What is the best way to achieve Step 4 - the moving of their User account?
-
Initially I thought a Trigger may be useful, but accessing the Order Item is difficult. There is an order_xml keyword which might output in the Triggers, but ^index modifier only seems to work on JSON and not on XML data, so I’m not sure how to access the Item (asset ID) data to make a condition of the Trigger.
-
I notice that on the Order Completion Actions of the Checkout I can create a Call REST Resource.
This really is not my area of knowledge, and haven’t used it much before.
Is there a way to use the REST Resource to send the Order Item data to somewhere (e.g. a trigger) which could then be used to move the user account??
(I have been using an Asset Listing to test the outputs of various keywords & modifiers. Not all Keywords listed on the Checkout Completion Action work in the asset listing… asset_attribute_details , asset_attribute_product_code , order_array do not work in the Asset Listing. order_xml does.)
Thank you in advance,
Emily