Dieses Tag wird in Verbindung mit dem MM_Form-Tag verwendet. Sie verwenden es, um Schaltflächen zu erstellen, die für das Formular relevante Aktionen ausführen. Genauer gesagt, gibt er eine URL aus, die in das href-Attribut eines HTML-Anker-Tags eingefügt werden kann, so dass beim Anklicken des Links die entsprechende Aktion ausgeführt wird. Abhängig vom Typ des übergeordneten Formulars werden verschiedene Schaltflächentypen unterstützt.
Attribute
Typ – Indicates what type of button to create. Valid values for the ‘type’ attribute are dependent upon the type of the parent form. See the section below for a list of valid values based on form type.
Gültige Schaltflächentypen nach Formulartyp
Verschiedene Formulartypen unterstützen verschiedene Schaltflächentypen. Im Folgenden finden Sie eine Liste der unterstützten Schaltflächentypen zusammen mit allen zusätzlich unterstützten Attributen, aufgeschlüsselt nach Formulartyp.
Zur Kasse
alle – This outputs a form submit button for each active payment method on the MemberMouse site. This also the buttons on the checkout form to dynamically respond to your payment method configuration. If you want to have direct control of button layouts, then use MM_Form_Button type=’submit’ instead.
Additional Attributes for Buttons with Value ‘all’
Etikett (optional) – Specifies the label to display on the onsite payment button. The default value is ‘Submit Order’.
Farbe (optional) – Specifies the color to use for the onsite payment button. Acceptable values are ‘light_blue’, ‘blue’, ‘green’, ‘red’, ‘orange’, ‘yellow’, ‘pink’, ‘purple’, ‘grey’ and ‘black’.
einreichen - Dadurch wird ein Link ausgegeben, über den das Formular abgeschickt wird.
Zusätzliche Attribute für Absende-Schaltflächen
paymentMethod (optional) – Indicates what payment method to use when submitting the form. Acceptable values are ‘default’, ‘paypal’ and ‘clickbank’. The default value is ‘default’. If ‘default’ is specified, the default payment method with be used based on the payment method configuration in MemberMouse. If ‘paypal’ or ‘clickbank’ is specified, that payment method will be used when the user checks out.
isDefault (optional) – Indicates that the payment method associated with the button should be used when the enter key is used to submit the checkout form. Acceptable values are ‘true’ or ‘false’. The default value is ‘false’. Only one button on a checkout form can be set as default. When the enter key is used to the submit the checkout form, the payment method associated with the button with the ‘isDefault’ attribute set to ‘true’ will be used. If no buttons on the checkout form as marked as the default then the payment method associated with the first button added on the form will be used.
applyCoupon - Damit wird eine Schaltfläche erstellt, die einen Gutscheincode auf die Bestellung anwendet. Damit dies funktioniert, muss das Feld MM_Form_Field name="couponCode" im Formular vorhanden sein.
myAccount
cancelMembership – This creates a link that goes to the save-the-sale page associated with a member’s current membership level.
updateAccountDetails - Dadurch wird ein Link erstellt, der ein Dialogfeld öffnet, in dem das Mitglied seine Kontodaten bearbeiten kann.
updateBillingInfo - Dadurch wird ein Link erstellt, der ein Dialogfeld öffnet, in dem das Mitglied seine Rechnungsdaten bearbeiten kann.
updateShippingInfo - Dadurch wird ein Link erstellt, der ein Dialogfeld öffnet, in dem das Mitglied seine Versandinformationen bearbeiten kann.
viewOrderHistory - Dadurch wird ein Link erstellt, der ein Dialogfeld öffnet, in dem das Mitglied seine gesamte Bestellhistorie einsehen kann.
viewGifts - Dadurch wird ein Link erstellt, der ein Dialogfeld öffnet, in dem das Mitglied seinen gesamten Geschenkverlauf einsehen kann.
Anmeldung
Anmeldung - Dies gibt eine Schaltfläche zum Absenden des Anmeldeformulars aus.
Zusätzliche Attribute für Login-Buttons
Etikett (optional) – Specifies the label to display on the button. The default value is ‘Login’.
Farbe (optional) – Specifies the color to use for the button. Acceptable values are ‘light_blue’, ‘blue’, ‘green’, ‘red’, ‘orange’, ‘yellow’, ‘pink’, ‘purple’, ‘grey’ and ‘black’.
Klasse (optional) - Ermöglicht es Ihnen, eine benutzerdefinierte CSS-Klasse für die Schaltfläche anzugeben. Wenn diese Klasse verwendet wird, wird das Farbattribut ignoriert.
vergessenesPasswort
einreichen - Dies gibt eine Schaltfläche zum Absenden des Formulars "Passwort vergessen" aus.
Zusätzliche Attribute für Absende-Schaltflächen
Etikett (optional) – Specifies the label to display on the button. The default value is ‘Submit’.
Farbe (optional) – Specifies the color to use for the button. Acceptable values are ‘light_blue’, ‘blue’, ‘green’, ‘red’, ‘orange’, ‘yellow’, ‘pink’, ‘purple’, ‘grey’ and ‘black’.
Klasse (optional) - Ermöglicht es Ihnen, eine benutzerdefinierte CSS-Klasse für die Schaltfläche anzugeben. Wenn diese Klasse verwendet wird, wird das Farbattribut ignoriert.
resetPassword
einreichen - Dies gibt eine Schaltfläche zum Absenden des Formulars zum Zurücksetzen des Passworts aus.
Zusätzliche Attribute für Absende-Schaltflächen
Etikett (optional) – Specifies the label to display on the button. The default value is ‘Submit’.
Farbe (optional) – Specifies the color to use for the button. Acceptable values are ‘light_blue’, ‘blue’, ‘green’, ‘red’, ‘orange’, ‘yellow’, ‘pink’, ‘purple’, ‘grey’ and ‘black’.
Klasse (optional) - Ermöglicht es Ihnen, eine benutzerdefinierte CSS-Klasse für die Schaltfläche anzugeben. Wenn diese Klasse verwendet wird, wird das Farbattribut ignoriert.
1KlickEinkauf
applyCoupon - Damit wird eine Schaltfläche erstellt, die einen Gutscheincode auf die Bestellung anwendet. Damit dies funktioniert, muss das Feld MM_Form_Field name="couponCode" im Formular vorhanden sein.
benutzerdefinierte
einreichen - Dies gibt eine Schaltfläche zum Absenden für das benutzerdefinierte Formular aus.
Zusätzliche Attribute für Absende-Schaltflächen
Etikett (optional) – Specifies the label to display on the button. The default value is ‘Submit’.
Farbe (optional) – Specifies the color to use for the button. Acceptable values are ‘light_blue’, ‘blue’, ‘green’, ‘red’, ‘orange’, ‘yellow’, ‘pink’, ‘purple’, ‘grey’ and ‘black’.
Klasse (optional) - Ermöglicht es Ihnen, eine benutzerdefinierte CSS-Klasse für die Schaltfläche anzugeben. Wenn diese Klasse verwendet wird, wird das Farbattribut ignoriert.
Verwendung
[MM_Form type="checkout"]
Coupon: [MM_Form_Field name="couponCode"]
<a href="/de/[MM_Form_Button type='applyCoupon']/">Coupon anwenden</a>
...andere Form SmartTags...
<a href="/de/[MM_Form_Button type='submit']/">Jetzt kaufen</a>
<a href="/de/[MM_Form_Button type='submit' paymentMethod='paypal']/">Bezahlen mit PayPal</a>
[/MM_Form]
In this example, I’m using the MM_Form_Button tag to create a button that applies a coupon code to the order and to create two submit buttons. The first submits the form using the default payment method and the second allows the user to checkout using PayPal.

