fbpx

Add Custom Fields to a Checkout Page

If you want to add a custom field to your checkout page, all you have to do is include the following SmartTag™ in your checkout form:

[MM_Form_Field type='custom' id='10' isRequired='false']

In order for this to work correctly make sure that you place the SmartTag™ between the MM_Form type='checkout' and /MM_Form SmartTags. After this SmartTag™ has been included in the checkout form MemberMouse will render the custom field as part of the checkout form based on the custom field configuration.

How to get the SmartTag™ for a particular custom field:

  1. In the MemberMouse menu, click Checkout Settings and then click on the Custom Fields tab.

  2. Locate the custom field you want to add to the checkout page in the table.



  3. Click the ‘blue tag' button in the Form SmartTag column.

  4. In the dialog that pops up, copy the SmartTag.



  5. Paste the SmartTag™ anywhere between the MM_Form type='checkout' and /MM_Form SmartTags on your checkout page.

Custom Field SmartTag™ Attributes

isRequiredSet the ‘isRequired' attribute to ‘true' if you want the field to be required. By default it will not be required.
classSet the ‘class' attribute to apply a custom CSS class to the field.
typeSet the ‘type' attribute to ‘custom-hidden' to make this a hidden field. This would usually be use in conjunction with passing custom data to the checkout page via the URL.
Was this article helpful?

Related Articles

Can’t find the answer you’re looking for?

Reach out to our Customer Success Team
Contact us!