Dieses Tag gibt den Link aus, mit dem ein Mitglied interagieren kann, um ein Produkt zu kaufen oder sich für eine kostenlose Mitgliedschaftsstufe anzumelden. Um einen funktionalen Link zu erhalten, sollte dieses Tag in Verbindung mit einem Anker-Tag (<a>), ein Schaltflächen-Tag (<button>) oder eine andere Methode zum Ausführen eines anklickbaren Links.
Es sollte entweder eine Produkt-ID oder eine Mitgliedschaftslevel-ID angegeben werden, um anzugeben, was das Mitglied kauft oder sich anmeldet. Wenn beides nicht angegeben wird, dient es als Anmeldelink für die Standard-Mitgliedschaftsstufe.
Attribute
productId (optional) – Indicates the ID of the product to purchase. Following a successful purchase, the member’s account will be updated appropriately. If the product is associated with a membership level or bundle, then that membership level or bundle will be applied to their account.
membershipId (optional) – Indicates the ID of the membership level for the member to sign up for. If the membership level is a paid membership, then the default product from the membership level configuration will be used unless a specific product ID is specified in the ‘productId’ attribute.
autoLogin (optional) – When this is set to ‘true’ a login token will be appended to the URL so that when a member clicks on it they will be automatically logged in. The default value is ‘false’.
useCardOnFile (optional) – This attribute is only applicable when you’re utilizing a payment method that supports card on file functionality.
When using a card on file solution, if there’s a card on file available for the current user, purchase links will be generated in a way that instruct MemberMouse to use that user’s card on file to make the purchase otherwise a standard checkout link will be generated so the user can enter in their billing information on the checkout page.
If you set this attribute to ‘false’ then regardless of whether the current user has a card on file or not, purchase links will always take the member to the checkout page to complete their order. The default value is ‘true’.
bypassConfirmation (optional) – This attribute is only applicable when you’re utilizing a payment method that supports card on file functionality.
When using a card on file solution, if there’s a card on file available for the current user and they click on a purchase link, the default behavior is to display a confirmation message asking the user to confirm the purchase.
If you set this attribute to ‘true’ then the confirmation message will not be displayed and the user’s card on file will be billed. If you decide to bypass the confirmation message, it’s your responsibility to make it clear to the user that they will be charged when they click the purchase link. The default value is ‘false.
paymentMethod (optional) – This parameter is used for certain offsite payment methods. It instructs MemberMouse to generate a link that goes directly to the offsite payment method’s checkout form instead of going to the MemberMouse checkout page. The only valid value for this attribute is ‘clickbank’. The payment method specified must be active in your Konfiguration der Zahlungsmethode damit dies funktionieren kann.
isGift (optional) – When this is set to ‘true’ the product being purchased will be purchased as a gift. The default value is ‘false’.
Verwendung
Beispiel 1
Zeigt einen anklickbaren Link an, der zur Kassenseite für das Produkt mit der ID 4 führt. Der Linktext lautet "Mitgliedschaft kaufen".
<a href="/de/[MM_Purchase_Link productId='4']/">Mitgliedschaft kaufen</a>
Beispiel 2
Zeigt einen anklickbaren Link an, der zur Kassenseite für das Produkt mit der ID 6 führt. Der Linktext lautet "Bundle kaufen". Legt fest, dass sich das Mitglied automatisch auf der Website anmeldet, wenn es auf den Link klickt.
<a href="/de/[MM_Purchase_Link productId='6' autoLogin='true']/">Bundle kaufen</a>
Beispiel 3
Zeigt einen anklickbaren Link an, der zur Kassenseite für die Mitgliedschaftsstufe mit der ID 1 (standardmäßige kostenlose Mitgliedschaftsstufe) führt. Der Linktext lautet "Kostenlos anmelden".
<code><a href="/de/[MM_Purchase_Link membershipId='1']/">Kostenlos anmelden</a>
Beispiel 4
Zeigt einen klickbaren Link an, der zur Kassenseite für das Produkt mit der ID 10 führt. Der Link ist so eingestellt, dass er auch dann zur Kassenseite führt, wenn der Kunde eine Karte hinterlegt hat. Der Linktext lautet "Bündel kaufen".
<code><a href="/de/[MM_Purchase_Link productId='10' useCardOnFile='false']/">Bundle kaufen</a>
Beispiel 5
Zeigt einen anklickbaren Link an, der zur Kassenseite für das Produkt mit der ID 10 führt. Link ist gesetzt nicht um das Bestätigungs-Popup für 1-Klick-Links anzuzeigen. Wendet die Zahlung sofort an. Der Linktext lautet "1-Klick-Kauf (Bestätigung umgehen)".
<code><a href="/de/[MM_Purchase_Link productId='10' bypassConfirmation='true']/">1-Klick-Kauf (Umgehung der Bestätigungsfunktion)</a>

