This tag is used in conjunction with the [MM_Form] tag. It is used to identify sections of content that have a certain significance within the current form. Identifying the content allows MemberMouse to perform specific actions that enhance the user experience. For example, on a checkout form by using this tag to create a shipping info section, MemberMouse can dynamically show or hide the shipping information based on if the product being purchased is shippable. This ensures that the user will see only those fields which are necessary for them to fill out based on their unique situation.


Attributes


type - Indicates the type of section. Acceptable values for the type attribute vary based on form type. See the section below for a list of acceptable values based on form type.


Valid Section Types by Form Type


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



checkout


ValueDescription
accountInfoThis section should contain form fields and content related to creating a new account. MemberMouse will ensure that this section is only displayed to non-members.
billingInfoThis section should contain form fields and content related to billing. MemberMouse will ensure that this section is only when the user is purchasing a paid product and will be hidden when signing up for a free membership.
shippingInfoThis section should contain form fields and content related to shipping. MemberMouse will ensure that this section is only displayed when the user is purchasing a shippable product.
shippingAddressThis section should contain form fields and content related to the shipping address. It is used in conjunction with the [MM_Form_Field name="shippingSameAsBilling"] field which renders a checkbox on the screen that allows the user to specify if their shipping address is the same as their billing address. If you have a section of type shippingAddress then MemberMouse will ensure that this section is only displayed when the user is purchasing a shippable product and their shipping address is different from their billing address.
couponThis section should contain form fields and content related to applying coupons to the order. MemberMouse will ensure that this section is only displayed when you have one or more active coupons configured on your site.
giftInfoThis section should contain any content that should only be display if the product being purchased is being gifted. This would be used in conjunction with the gift checkbox ([MM_Form_Field type='input' name='gift'])



myAccount


ValueDescription
giftsThis section should contain content related to displaying the gifts purchased by a customer (i.e. [MM_Form_Data name='gifts']). MemberMouse will ensure that this section is only displayed when the current customer has purchased one or more gifts.



login


none



forgotPassword


none



1clickPurchase


ValueDescription
shippingInfoThis section should contain form fields and content related to shipping. MemberMouse will ensure that this section is only displayed when the user is purchasing a shippable product.
couponThis section should contain form fields and content related to applying coupons to the order. MemberMouse will ensure that this section is only displayed when you have one or more active coupons configured on your site.



custom


none



 


Usage


[MM_Form type="checkout"]


[MM_Form_Section type="accountInfo"]

...account information form fields and related content...

[/MM_Form_Section]


[MM_Form_Section type="billingInfo"]

...billing information form fields and related content...

[/MM_Form_Section]


[MM_Form_Section type="shippingInfo"]

...shipping information form fields and related content...


[MM_Form_Field name="shippingSameAsBilling"]

Shipping is the same as billing


[MM_Form_Subsection type="shippingAddress"]

...shipping address form fields and related content...

[/MM_Form_Subsection]

[/MM_Form_Section]


[MM_Form_Section type="coupon"]

...coupon form fields and related content...

[/MM_Form_Section]


...other form SmartTags...

[/MM_Form]



In this example, I'm using the [MM_Form_Section] tag create a number of different sections which contain account info, billing info, shipping info, shipping address and coupon form content. Setting the form up in this way allows MemberMouse to dynamically show or hide these sections based on what the current user is purchasing.


IMPORTANT NOTE: When MemberMouse processes the MM_Form_Section tag it creates <div> tags and takes the content from inside the MM_Form_Section tag and places it within the <div> tags created. For example, this...


[MM_Form_Section type="accountInfo"]
This is my content.
[/MM_Form_Section]



Becomes this...


<div id="mm-account-information-section">
This is my content.
</div>



This is important to note because you'll want to make sure that the content you place within the MM_Form_Section tag doesn't conflict with the surrounding <div> tags. For example, these are valid...


[MM_Form_Section type="accountInfo"]
<div class="someStyle">
This is my content.
</div>
[/MM_Form_Section]

<div class="someStyle">
[MM_Form_Section type="accountInfo"]
This is my content.
[/MM_Form_Section]
</div>



These are not valid...


<div class="someStyle">
[MM_Form_Section type="accountInfo"]
This is my content.
</div>
[/MM_Form_Section]

[MM_Form_Section type="accountInfo"]
<div class="someStyle">
This is my content.
[/MM_Form_Section]
</div>