Use case: You want to automatically populate a design field in Invent (MegaEdit) with a registered user’s avatar and optionally prevent customers from changing their avatar.
1. Overview
In Infigo, you can prepopulate a product’s image field with each registered user’s avatar. This is especially useful for products such as ID badges, business cards, or any design where an end user’s photo is needed by default. Once avatars are set, you can also decide whether customers can change their avatars or if you’d prefer to disable this feature entirely.
2. Prerequisites & Notes
- You must have user avatars enabled initially so that each registered user has or can be assigned an avatar.
- This feature does not work for storefront administrators. It only works for end-users (registered customers).
- Disabling avatars after assigning them will remove the user’s ability to upload or change their avatar, but the previously saved avatar will still populate on designs if your settings hold the previously uploaded file.
3. Step-by-Step Guide
3.1 Set Up Your Invent Product with the prepopulate_avatar
Tag
- Open your Invent template (MEX file) in MegaEdit (Designer).
- Tag the relevant image field with
prepopulate_avatar
.
- For example, select the image field in your design, then add
prepopulate_avatar
as a Tag in the field’s settings.

- Export the template (MEX) with the changes, and then re-import it into Infigo.
Note: This tag tells the system to look for the user’s avatar and place it in this field automatically.
3.2 Enable the Prepopulate Data Script
- Go to Product Management > MegaEdit Config for your chosen product.
- Under Scripts, tick/enable the “Prepopulate Data Script.”
- Save the configuration.
3.3 Test as a Registered User
- Log in with a test (non-admin) user that has an avatar.
- Open it in the MegaEdit Editor.
- You should see the avatar pre-populated in the tagged image field.
Important: This will not work for admin accounts, as the script is specifically designed for customer-facing user profiles.
4. Disabling or Restricting Avatars
If you wish to prevent your customers from changing their avatar after you (or they) have uploaded it:
-
Disable Avatar Uploads:
- In Admin > Customer Settings , find the Avatar related settings.
- Toggle off “Allow Customers to Upload Avatars” (or a similarly named setting).
- Once disabled, customers cannot edit or upload a new avatar, but any previously uploaded avatar should remain in place (though you should always test your specific storefront to confirm).
Note: There is no partial setting to allow only storefront administrators to set avatars. Avatar settings are either on or off for all customers.
5. Troubleshooting & Tips
- Caching Issues: If you notice the avatar still populates after toggling the setting off, clear your site cache or do a test in an incognito window to confirm final behavior.
- Accidental Admin Testing: Remember that admins will not see this feature applied to them, so always test with a normal user account.
- Avatar Cropping or Quality: Make sure your default avatar dimensions and image quality are set appropriately so that your designs display well.
6. Additional Resources