This tag is used in conjunction with the [MM_Form] tag. It outputs data related to the form being filled out. Depending on the type of the parent form, different data elements are supported.


Attributes


name - Indicates which data element to output on the screen. Valid values for the name attribute is dependent upon the type of the parent form. See the section below for a list of valid values based on form type.


Different form types support different data elements. Below is a list of supported data elements broken down by form type.



checkout


productName - Outputs one of the following:

1) if the product is not associated with a membership level or bundle, the product name will be used

2) if the product is associated with a membership level or bundle, the name of the membership level or bundle associated with the product will be used

3) if the member is signing up for a free membership level then then name of the membership level will be used

As of MM 2.2.4, if you prefer that the product name be displayed whenever possible, the useAccessName attribute can be set to false to indicate that the product name should be used in place of the membership level or bundle name. By default useAccessName is set to true.


For example:

[MM_Form_Data name='productName' useAccessName='false']


productDescription - Outputs the description of the product being purchased. This is the description entered in the product configuration in MemberMouse.


productPrice - Outputs the price to be charged to the customer at the time of the product being purchased. If there's a free trial on the product then the amount will be $0.


productPriceDescription - Outputs a detailed description of the billing associated with the product being purchased. For example, 14 day free trial, $10.00/month, $197.00, 2 payments of $19.95, $99/year, etc.


shippingPrice - Outputs the price of shipping based on the shipping method the user selects.


discount - Outputs the discount amount that will be applied to the order based on the coupon the user entered in.


totalPrice - Outputs the total price of the order taking into account the product price, shipping price and discount amount.


myAccount


firstName - Outputs the first name of the logged in member.


lastName - Outputs the last name of the logged in member.


phone - Outputs the phone number of the logged in member.


email - Outputs the email address of the logged in member.


username - Outputs the username of the logged in member.


password - Outputs a masked version of the logged in member's password.


registrationDate - Outputs the registration date of the logged in member.


membershipLevelName - Outputs the name of the membership level the logged in member is subscribed to.


billingAddress - Outputs the billing address of the logged in member.


billingCity - Outputs the billing city of the logged in member.


billingState - Outputs the billing state of the logged in member.


billingZipCode - Outputs the billing zip code of the logged in member.


billingCountry - Outputs the billing country of the logged in member.


shippingAddress - Outputs the shipping address of the logged in member.


shippingCity - Outputs the shipping city of the logged in member.


shippingState - Outputs the shipping state of the logged in member.


shippingZipCode - Outputs the shipping zip code of the logged in member.


shippingCountry - Outputs the shipping country of the logged in member.


customFields - Outputs a list of custom fields that are configured to be shown on the My Account page. For each custom field the display name and the value stored in the custom field for the logged in member will be displayed.


subscriptions - Outputs a list of any active subscriptions the logged in member has along with a link the member can use to cancel the subscription.


orderHistory - Outputs details relating to the most recent orders placed by the logged in member.


gifts - Outputs details relating to the most recent gifts purchased by the logged in member.


login


none

forgotPassword


none

1clickPurchase


productName - Outputs one of the following:


1) if the product is not associated with a membership level or bundle, the product name will be used

2) if the product is associated with a membership level or bundle, the name of the membership level or bundle associated with the product will be used

3) if the member is signing up for a free membership level then then name of the membership level will be used

As of MM 2.2.4, if you prefer that the product name be displayed whenever possible, the useAccessName attribute can be set to false to indicate that the product name should be used in place of the membership level or bundle name. By default useAccessName is set to true.

For example:

[MM_Form_Data name='productName' useAccessName='false'


productDescription - Outputs the description of the product being purchased. This is the description entered in the product configuration in MemberMouse.


productPrice - Outputs the price to be charged to the customer at the time of the product being purchased. If there's a free trial on the product then the
amount will be $0.


productPriceDescription - Outputs a detailed description of the billing associated with the product being purchased. For example, 14 day free trial, $10.00/month, $197.00, 2 payments of $19.95, $99/year, etc.


shippingPrice - Outputs the price of shipping based on the shipping method the user selects.


discount - Outputs the discount amount that will be applied to the order based on the coupon the user entered in.


totalPrice - Outputs the total price of the order taking into account the product price, shipping price and discount amount.



custom

none

 


Usage


[MM_Form type='checkout']


Product Name: [MM_Form_Data name='productName']

Product Description: [MM_Form_Data name='productDescription']

Product Price: [MM_Form_Data name='productPrice']

Shipping Price: [MM_Form_Data name='shippingPrice']

Discount: [MM_Form_Data name='discount']

Total Price: [MM_Form_Data name='totalPrice']


...other form SmartTags...

[/MM_Form]


In this example, I'm using the [MM_Form_Data] tag to output relevant information about the current order to the screen.