fbpx
  1. Home
  2. Knowledge Base
  3. SmartTags™
  4. Decision SmartTags™
  5. Order Decision SmartTag (MM_Order_Decision)

Order Decision SmartTag (MM_Order_Decision)

This tag is used to show or hide content based on information associated with the current order. This tag can be used on your site only on a Checkout Form (MM_Form type='checkout'…/MM_Form) or on a Confirmation core page. It can also be used in Push Notifications for payment or affiliate-related events only.

Attributes

membershipId (optional) – Takes a single membership level ID or a SmartTag™ equation incorporating multiple membership level IDs. You can also precede the ID with a ‘!' to check if the current member does not have that membership level.

productId (optional) – Takes a single product ID or a SmartTag equation incorporating multiple product IDs and checks if the current order is purchasing at least one of the products listed. You can also precede the ID with a ‘!' to check if the current order is not purchasing that product.

isFree (optional) – Checks if the current order is signing up for a free membership or not. Acceptable values are ‘true' or ‘false'.

isShippable (optional) – Checks if the current order is purchasing a shippable product or not. Acceptable values are ‘true' or ‘false'.

isDiscounted (optional) – Checks if there was a discount applied to the current order. Acceptable values are ‘true' or ‘false'.

isGift (optional) – Checks if the product associated with the current order was purchased as a gift. Acceptable values are ‘true' or ‘false'.

Usage

If you use multiple attributes for a single decision, it results in an AND relationship. For example, if you write:

[MM_Order_Decision productId='1' isShippable='true']

This means, show this content if…

the current order is purchasing the product where ID equals 1

AND

the current order is purchasing a product that requires shipping

When using the MM_Order_Decision tag, you must always include an opening and closing tag. The content between the opening and closing tags can be any valid HTML or JavaScript and it can also contain other MemberMouse SmartTags™ including other decision tags with the exception of the MM_Order_Decision itself. The MM_Order_Decision cannot be used within itself.

Here are some valid examples:

[MM_Order_Decision membershipId='1']

This content is directed specifically toward orders signing up for a membership level ID of 1.

[/MM_Order_Decision]
[MM_Order_Decision isShippable='true']

This content is directed specifically toward orders that are shippable.

[/MM_Order_Decision]
Was this article helpful?

Related Articles

Contents

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

Reach out to our Customer Success Team
Contact us!