Copy data from the Product Landing Page to a Product Variable Field

It is possible in Catfish to populate a field in an Infigo Product with the value of a product attribute. What I mean by this is that if you have a product attribute assigned to a product, the value of that attribute can be used to populate a field for the product itself.

This can be useful in many situations, such as having the user enter their name/username in an attribute on the landing page so this information can be carried onto the job ticket, whilst also having the same value appear on the order itself without the user having to type it out twice.

In order to set this up, you will need to create both a product attribute and a text field on the variable template for the product you would like to set up. You will need to remember the name of these and make sure that they are unique, and that there are no variables on the same name contained on the template.

For the sake of this example, I will be creating a blank PDF with only one text field, and I will only be assigning the required product attribute to it. Below are screenshots of the attribute and field names I am using respectively.

Attribute_name.pngField_name.png

I have assigned the product attribute to the product I am using to test this and I have simply set it to a textbox input type and gave it a simple landing label.

Attribute_configuration.png

Once you have configured the product attribute and assigned it to the Infigo Variable product, you will need to map the variable to the attribute. In order to do this, you need to navigate to Admin -> Catfish -> Infigo Variable Data -> Infigo Settings and assign it in the field ProductAttributeVariableItemMapping.

The mapping follows the template FieldName=AttributeName. See below for an example on how this would be done for the product used in this example:

Mapping_configuration.png

After completing these steps, the product will now have a textbox on the landing page called "Name" and anything you put into that field will carry through to the text field in the editor - however this can still be changed in the editor itself.

As you can see in the screenshots below:

I have entered "John Doe" into the product attribute on the landing page. 

Landing_page.png

"John Doe" has carried through to the field "NameField"

Editor_screen.png

I have also attached the PDF I created whilst writing this for comparison.

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    mark landon

    Hi Ben

     

    The PDF Prepopulate from product variable.pdf is a single page with a box on it. No text ;( 

  • 0
    Avatar
    Jason

    Does this work with Global Variables or just Fields?

  • 0
    Avatar
    Ben Mitchell

    Hi Mark, Jason.

    Thank you for your comments, I will attempt to answer your questions below:

    Mark:

    This is the PDF I created whilst writing this article, and so it is used to provide a PDF which is confirmed to be working for the purposes of the feature this article is explaining. If you follow the steps of this article, then this PDF is designed to be a cross-reference to ensure that you have configured your own correctly.

    If you would like further assistance in configuring this feature, please contact support.

    Jason:

    I can confirm that this feature allows you to prepopulate global variables through the method outlined in this article, but not local variables.

    To prepopulate a global variable, simply substitute the field name for the variable name when mapping it in Infigo Settings.

    Edited by Ben Mitchell
Please sign in to leave a comment.
Powered by Zendesk