This tag outputs data associated with an order that was just placed. Order data SmartTags can only be used on confirmation core pages and push notifications associated with payment events.
Attributes
name
- Indicates what type of data to output from the order. Below is a list of acceptable values:
Value | Description |
id | Outputs the order ID |
total | Outputs the order total |
subtotal | Outputs the order subtotal |
discount | Outputs the amount of the discount applied to the order |
shipping | Outputs the shipping cost charged on the order |
productId | Outputs the ID of the product associated with the order |
productName | Outputs the name of the product associated with the order |
couponCode | Outputs the coupon code applied to the order |
giftLink | If the order is associated with a product that was purchased as a gift, this will output the link that a customer can use to redeem the gift. Could be used in conjunction with the MM_Order_Decision SmartTag to ensure the link is only displayed if a gift was purchased (i.e. [MM_Order_Decision isGift='true']...[/MM_Order_Decision] ).Note: This particular attribute can only be used on confirmation pages. Including it within push notifications or attempting to access it via push notification scripts is not supported. |
ipAddress | Outputs the IP address of the customer who placed the order |
shippingMethod | Outputs the name of the shipping method associated with the order |
billingAddress | Outputs the billing address |
billingCity | Outputs the billing city |
billingState | Outputs the billing state |
billingZipCode | Outputs the billing zip code |
billingCountry | Outputs the billing country ISO code |
billingCountryName | Outputs the billing country printable name |
shippingAddress | Outputs the shipping address |
shippingCity | Outputs the shipping city |
shippingState | Outputs the shipping state |
shippingZipCode | Outputs the shipping zip code |
shippingCountry | Outputs the shipping country ISO code |
shippingCountryName | Outputs the shipping country printable name |
affiliateId | Outputs the affiliate ID associated with the order |
subaffiliateId | Outputs the subaffiliate ID associated with the order |
doFormat
(optional) - Set this attribute to true
to indicate that the number returned should be formatted according to your site's currency settings. Set this attribute to false
to indicate that the number should not be formatted. This attribute is only taken into account when the name
attribute is set to total
, subtotal
, shipping
or discount
. The default value is false
.
dateFormat
(optional) - By default, dates will be output in the format: Oct 14, 2013. If you want to use a custom date format, use this attribute to specify how to format the date. Use standard PHP date format rules when defining a custom format. This attribute is only valid when the name
attribute is set to nextBillingDate
.
Usage
Order ID: [MM_Order_Data name='id']
Subtotal: [MM_Order_Data name='subtotal' doFormat='true']
Discount: [MM_Order_Data name='discount' doFormat='true']
Shipping: [MM_Order_Data name='shipping' doFormat='true']
Order Total: [MM_Order_Data name='total' doFormat='true']