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-Benachrichtigungen nur für zahlungspflichtige oder mit dem Unternehmen verbundene Veranstaltungen.
Attribute
membershipId (optional) - Nimmt eine einzelne Mitgliedschaftslevel-ID oder eine SmartTag™-Gleichung 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) - Nimmt eine einzelne Produkt-ID oder eine SmartTag-Gleichung 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’.
Verwendung
Wenn Sie mehrere Attribute für eine einzige Entscheidung verwenden, ergibt sich daraus eine UND-Beziehung. Wenn Sie zum Beispiel schreiben:
[MM_Order_Decision productId='1' isShippable='true']
Das heißt, zeige diesen Inhalt, wenn...
die aktuelle Bestellung kauft das Produkt, dessen ID gleich 1 ist
UND
die aktuelle Bestellung ist der Kauf eines Produkts, das Versand erfordert
Wenn Sie das MM_Order_Decision-Tag verwenden, müssen Sie immer ein öffnendes und ein schließendes Tag einfügen. Der Inhalt zwischen dem öffnenden und dem schließenden Tag kann jeder gültige HTML- oder JavaScript-Code sein und kann auch andere MemberMouse SmartTags™ einschließlich anderer Entscheidungs-Tags enthalten, mit Ausnahme des MM_Order_Decision-Tags selbst. Die MM_Order_Decision kann nicht in sich selbst verwendet werden.
Hier sind einige gute Beispiele:
[MM_Order_Decision membershipId='1']
Dieser Inhalt richtet sich speziell an Bestellungen, die sich für eine Mitgliedsstufe mit der ID 1 anmelden.
[/MM_Order_Decision]
[MM_Order_Decision isShippable='true']
Dieser Inhalt richtet sich speziell an Bestellungen, die versendbar sind.
[/MM_Order_Decision]

