Passing Information to and from Infigo
With the help of the communicator, you can easily send various types of information between your system and Infigo. This functionality is especially useful for transferring product details, customer information, or any other data that needs processing. Infigo can read different data types via a MegaEdit editor script, allowing you to update and manipulate Editor, Product, or Job data.
To receive events from Infigo in your external system, ensure that you add your system's origin to the InfigoSettings under "External Source Origin For Post Messages." For guidance, refer to the setup example available at Infigo Design. Your system's origin must match what you have configured; otherwise, Infigo will not trust external messages due to security measures. Currently, each storefront can only have one origin configured.
For a practical example, check the product page. This page demonstrates how to retrieve attributes from Infigo and build an iframe form in the demo app. Customers can select values, and once the editor triggers the Editor loaded event, this information is passed to Infigo through the communicator.
You will also need to add a ME script to Infigo. This script will catch the event data and update attributes and Invent variables in Infigo if they match the names. Additionally, the script shows how to handle changes in Invent variables within Infigo, allowing you to send the updated values back to your system via the communicator.
This setup provides a flexible solution for passing pricing, attribute selections, and other information back and forth between your system, the ME editor, and Infigo.