You can automatically grant or revoke security roles to customer after purchasing a variant or make a Web request (GET or POST) to an external service. This feature is useful if you need to allow access to certain pages on your Web site after the customer purchases the product or you have custom logic that needs to run.
You must first enable the Product actions feature under Configuration > Product. Once enabled, you can add your own action rules from the Action tab.
Please note you can only grant security roles that are allowed under the Configuration > Security menu. This security feature prevents staff operators from creating product action rules to grant themselves higher level roles (e.g. “Administrators” role).
For security reasons, to execute SQL statements in your action rules, you must first login as Host user and enable the Allow SQL in action rules option under the Configuration > Security settings.
The Place order action rule can also use XSL transform to determine what action rules to run. The Storefront comes with several pre-defined rules that you can simply modify the values without needing to know XSL. To learn more about XSL, please see the XSL Transform section.