Picture of Sync MegaEdit Inputs to Product Attributes

Sync MegaEdit Inputs to Product Attributes

In this tutorial, I’ll walk you through how to map any MegaEdit form field directly to your product attributes, whether it’s text, images, or custom inputs. I’ll show you how to activate the necessary script and configure it on your MegaEdit product. It’s a straightforward process, and I’ll also touch on how this applies to Invent users.

Tutorial Video Transcript

A transcript of our tutorial video, ensuring you can find exactly what you need, when you need it.

You can search this page to find the relevant time-stamp in the video. Also, this text can be used as part of the tutorial search feature.

0:00 In this short tutorial, we're going to show you how you can map any MegaEdit form field directly into one of your product attributes.
0:09 And this applies to text, images, or custom field inputs. Now, what exactly I mean here is shown in this little example, which I hope you can see.
0:19 So, on my actual MegaEdit product, with a little example of it there, I just have a text box into which I've put in some text.
0:30 And what this process that we're covering here is doing is just making sure that the text we're putting into a certain field in our MegaEdit product is then getting transferred to the to one of our attributes on our product as well.
0:45 now, this is simply done by tagging your field within MegaEdit with a certain string. And I'll show you that in a moment.
0:53 And what it means is that when the customer clicks add to basket, a script that's running in the background automatically transfers those values into the corresponding attribute slot on the order line.
1:05 So that's it in a nutshell, let's just have a look at how exactly. This is configured. So, first off, we need to make sure that we've actually got the relevant script activated in our MegaEdit scripts screen.
1:19 if we navigate to MegaEdit scripts. Now, people might see slightly different behavior here based on, uhm, how you're logged in, for example, or the permissions that you've gathered over the time you've used Infigo.
1:32 So you can see in my case that I can see all of these hard-coded scripts at the bottom. If you can see this screen, then you're going to scroll right the way down to the bottom and click this button.
1:43 This product attribute sync script, and then click on save. If you can't see that list, the first thing to do is to try logging in as your platform administrator.
1:54 If that doesn't work either, you can get in, get in touch with our customer support, and they'll be able to activate the script for Once that script is activated, we actually have to configure it on our MegaEdit So I'm going to go to my product management.
2:10 We could create a brand new MegaEdit product. I'll just use a basic one I've created already. First thing I'm going to do is to activate that particular switch.
2:18 So I'm going to go to our MegaEdit settings for that particular product. Go across to the scripts tab. Select our product attribute sync script that we just activated, and then make sure we save it at the top of the screen.
2:36 And that's it. The script is now active. No other changes need to be made with that particular script. The only other thing we need to do on the actual back end of the product like this is just to make sure that we have the relevant product attributes specified to our product.
2:51 I'm not going to go into this in any detail, there's lots more resources on product if I quickly just go into our product variant settings, we can see in our case that we have one attribute specified, which is called example attribute.
3:08 That's everything configured on the back end of the product. Now we're going to go and launch that product in MegaEdit.
3:17 the steps in here are quite simple as well. If you haven't done already, you can add the relevant field that you want to link to that particular attribute.
3:25 I've already got a text field on my form. If I then load up the driver, text options window just by double-clicking, go across to our details tab and all I'm doing is navigating down to this tags option which is down here.
3:40 And you can see there the exact string that we're going to input. So it's save to attribute, underscore, and then the the exact name of the attribute as it appears on our product.
4:01 Make sure you save that product as default and then that is all you need to do. So now whenever text is placed into here, so let's just go here.
4:10 So with my simple test, I'm going to add that to basket and you can see there it's been brought through into my attribute value.
4:28 Now this same logic does apply with Invent as well if you are an Invent user. So I've just got a very simple sample invent file open here.
4:39 got one variable which is my text variable which is linked to this text field here. And then on the actual properties of the text field, go to the general tab and then you'll see once again as we did in MegaEdit itself, we have this tags field.
4:55 And we're just going to do exactly the same process here. We're going to put save to attribute underscore and then the exact name of the attribute.
5:03 Now once we export this MEX file from Invent and take it into MegaEdit, the exact same processes apply so we're still using whatever value is in that field and then driving it into that product attribute.
5:16 The only difference here is that because we set up a variable in Invent, it means that that value can be driven from the actual form itself.
5:43 which is linked to the relevant text field. If I add to basket, because we've linked it together with that tag, the value should be brought through.
6:04 So you can actually link to those attributes. So first off, we'll start with text fields as we've seen. So that reads the string value that's in that text field and ensures it meets any formatting constraints.
6:18 Now you can do this for an image field as well. So it captures the uploaded asset reference or URL and can pass that back into an attribute.
6:27 And then it's also applicable for custom fields as well. So that applies any specialized extrication logic. If you're mapping to any drop-down or radio attributes, it might be matches the user's input to one of the defined options.
6:43 So looking up the correct option ID. And then for free text attributes, it assigns the raw value directly. And just to confirm, this is a brand new hard-coded script as we saw being activated earlier on.
6:56 So no existing functionality is going to be modified at all. And you've seen that you have to purposely turn that script on in order to use 

Incomplete
Step by Step Guide

Mapping MegaEdit Form Fields to Product Attributes

 

1. Introduction to Mapping 0:00

generated-image-at-00:00:00

  • Overview of the tutorial's purpose: mapping MegaEdit form fields to product attributes.

  • Applicable to text, images, or custom field inputs.

 

2. Understanding the Process 0:09

generated-image-at-00:00:09

  • Example of a MegaEdit product with a text box.

  • Explanation of how inputted text is transferred to product attributes when a customer adds to basket.

 

3. Activating the Required Script 1:05

generated-image-at-00:01:05

  • Navigate to MegaEdit scripts screen.

  • Scroll to the bottom to find the 'product attribute sync script'.

  • Click to activate and save the script.

  • If not visible, log in as platform administrator or contact customer support.

 

4. Configuring the Script in MegaEdit 2:10

generated-image-at-00:02:10

  • Go to product management and select a MegaEdit product.

  • Activate the product attribute sync script in the MegaEdit settings under the scripts tab.

  • Save the changes.

 

5. Specifying Product Attributes 2:51

generated-image-at-00:02:51

  • Ensure relevant product attributes are specified for the product.

  • Brief mention of product variant settings.

 

6. Launching the Product in MegaEdit 3:17

generated-image-at-00:03:17

  • Add the relevant field to link to the product attribute.

  • Access the driver text options window and navigate to the tags option.

 

7. Tagging the Field 3:40

generated-image-at-00:03:40

  • Input the tag: 'save to attribute_' followed by the exact attribute name.

  • Save the product as default.

 

8. Testing the Configuration 4:10

generated-image-at-00:04:10

  • Add the product to the basket to verify that the text is transferred to the attribute value.

 

9. Applying the Same Logic in Invent 4:39

generated-image-at-00:04:39

  • Explanation of how to apply the same process in Invent.

  • Set up a variable linked to the text field and use the same tagging process.

 

10. Linking Attributes with Different Field Types 6:04

generated-image-at-00:06:04

  • Confirm that the same logic applies to:

    • Text fields (string values)

    • Image fields (asset reference or URL)

    • Custom fields (specialized extraction logic)

  • Mention of how drop-down or radio attributes match user input.

 

11. Conclusion 6:56

generated-image-at-00:06:56

  • Reassurance that this is a new hard-coded script and does not modify existing functionality.

  • Reminder to activate the script to use the new mapping feature.

Link to Loom

https://loom.com/share/05fa0d447bd04adcb8c8b28508415a22

Alternate Search Terms

map MegaEdit fields to product attributes, MegaEdit form field mapping, MegaEdit attribute sync script setup, link MegaEdit input to product data, save MegaEdit form input as product attribute, configure MegaEdit product attribute mapping, MegaEdit custom field attribute link, how to tag MegaEdit fields to attributes, sync MegaEdit form to product attributes, map Invent field to product attribute