Batch data in MegaEdit
SW

Sam Webster

Created Jan 10, 2023

Batch data in MegaEdit

MegaEdit has the functionality to allow batch uploads using variable placeholders in a template that users can upload their batch data against. Here we look at the Standard Batch Script and how to apply to a product.

15
    t

Infigosoftware

18 Steps
1

Navigate to your MegaEdit products and edit a product

Navigate to your MegaEdit products and edit a product
2

Change the Batch Source option to CSVPlugin

This script is to used in conjunction with a dynamic product that is using the CSV Plugin option.  It enables the dynamic product to read a CSV or TXT upload file.  You can also tick the script for "Standard Batch Upload options" which allows for .xls and .xlsx files to be used on a dynamic CSV product.

Change the Batch Source option to CSVPlugin
3

Click on Save and Continue Edit

Click on Save and Continue Edit
4

Click on Scripts

Next, enable the script against your chosen dynamic product under the Scripts tab within your MegaEdit product setup

Click on Scripts
5

Check Standard Batch Script

The Standard Batch Script allows for the upload of txt and csv files.

You can also tick the script for "Standard Batch Upload options" which allows for .xls and .xlsx files to be used on a dynamic CSV product.

Check Standard Batch Script
6

Click on Save changes

Click on Save changes
7

Launch your MegaEdit product

You will see a new Placeholders section in the top bar of the MegaEdit editor.

Launch your MegaEdit product
8

Click Add to create a new placeholder

Once you click on the 'Add' button, it will give you a pop up that allows you to create your own placeholder.

Click Add to create a new placeholder
9

Type a name for the placeholder

Ideally, this should represent the information to be used with this placeholder, such as "Name", "Phone" or "Address". However, this is not a strict requirement.

In our example, we will create a "Name" placeholder.

Type a name for the placeholder
10

Click on Ok

Click on Ok
11

A placeholder text field is created

A placeholder will be added to the canvas with this format: [++Name++].... this enables the user to match their data with the placeholder using the mapping option when the batch data is submitted.

The newly created text field does not have to be used. If you wish to use a placeholder in an existing text field, simply replicate the placeholder text format [++Name++].

A placeholder text field is created
12

Add and position any additional placeholders

In our example, we have created a "Address" and "Phone" placeholders.

As you add in placeholders a dropdown list will be created - this is so you can re-use the placeholders on other text fields and pages of a template.  You click the button 'Use' to apply the placeholder selected to the canvas. 

Add and position any additional placeholders
13

Check your input data

We are going to upload a set of data in one of several formats.

The screenshot below shows an example of how this data should be laid out. We are going to link our Placeholders to each of the column headers to populate the relevant data to the relevant area of the canvas.

Check your input data
14

Click Upload CSV and select the data file

This will give you a pop up where you can map your batch data to the placeholders.

Click Upload CSV and select the data file
15

Match placeholders to their associated columns

MegaEdit will try to auto map the placeholder name to a column name from the batch data.  Or you can uncheck the the blue tick and manually map the placeholders to the batch column data.

Match placeholders to their associated columns
16

To verify the data import on your product, click on Preview

To verify the data import on your product, click on Preview
17

Populated records will be shown

You will be able to search through the first 5 records by default - and then add to basket to order your job.

Populated records will be shown
18

Record example

Record example
Well done!
Create how-to guides like this in a snap. Get Tango now.