> ## Documentation Index
> Fetch the complete documentation index at: https://dokumentation.websale.de/llms.txt
> Use this file to discover all available pages before exploring further.

# Buttons for customer account and login

> The BT tags around the customer account: login via Facebook, resetting the password, creating a multiple account, creating a customer account after a guest order, and sending an upload link.

Around the customer account, there are buttons that may only appear under certain conditions: a Facebook login only if this feature is enabled, and a customer account after a guest order only if no account exists yet for this email address.

That is why several tags on this page are also range tags. They tell the template not only what the button is called but also whether it should be displayed at all.

## How the BT tags work

A `BT-` tag outputs the technical name of the button, not its label. The shop uses this name to recognize which button was clicked.

```html theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
<input type="submit" name="~BT-SetPassword~" value="Neues Passwort setzen">
```

The tag goes into the `name` attribute, the text for the buyer into `value`. The button must submit and must be inside the associated form.

## Login

### BT-ExternLogin\_facebook

Logs the buyer in via their Facebook account. As a range tag, it only applies if external login is enabled in the shop.

```html theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
<form action="~FORM-CombinedLogin~" method="post" autocomplete="off">
   ...
   {BT-ExternLogin_facebook}
      <button type="submit" name="~BT-ExternLogin_facebook~">
         <img src="images/web/facebook.png" alt="Login mit Facebook">
      </button>
   {/BT-ExternLogin_facebook}
</form>
```

> [!WARNING]
>
> Without the enclosing range, the button appears on the page even if the feature is not enabled. The buyer then clicks on something that does nothing.

### BT-SetPassword

Resets the password. The button completes the "forgot password" flow.

> [!NOTE]
>
> The tag is permitted on the login page (`ws_login.htm`) and on the template for logging in at shop start in closed shops.

### BT-SubAccountCreate

Creates a multiple account, that is, another customer account under the same email address. This is intended for households or departments that share one address.

Guide: Login and registration · Forgot password · Multiple accounts

## The customer account after a guest order

After a guest order, the shop already knows all of the buyer's data. All that is missing is a password to turn the order into a customer account. Both tags are located on the order receipt confirmation page (`ws_confirm.htm`).

### BT-CreateAccountAfterGuestOrder

Creates the customer account with a password chosen by the buyer.

```html theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{ST-CreateAccountAfterGuestOrder}
   <form action="~FORM-CreateAccountAfterGuestOrder~" method="post" autocomplete="off">
      Ihr Passwort:
      <input type="password" maxlength="64"
             name="~WS-CreateAccountAfterGuestOrder_pw_input~">

      Ihr Passwort wiederholen:
      <input type="password" maxlength="64"
             name="~WS-CreateAccountAfterGuestOrder_pwagain_input~">

      <input type="submit" name="~BT-CreateAccountAfterGuestOrder~" value="registrieren">
   </form>
{/ST-CreateAccountAfterGuestOrder}
```

### BT-CreateAccountAfterGuestOrder\_facebook

Creates the same customer account via Facebook instead. As a range tag, it only applies if external login is enabled.

```html theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{ST-CreateAccountAfterGuestOrder}
   <form action="~FORM-CreateAccountAfterGuestOrder~" method="post" autocomplete="off">
      {BT-CreateAccountAfterGuestOrder_facebook}
         <button type="submit" name="~BT-CreateAccountAfterGuestOrder_facebook~">
            <img src="images/web/facebook.png" alt="Mit Facebook registrieren">
         </button>
      {/BT-CreateAccountAfterGuestOrder_facebook}
   </form>
{/ST-CreateAccountAfterGuestOrder}
```

> [!NOTE]
>
> The outer range `ST-CreateAccountAfterGuestOrder` decides whether the offer appears at all. It only applies if the order was placed as a guest order and no account exists yet for this email address.

> [!WARNING]
>
> This is the last page the buyer sees in the shop. If you leave out the offer here, you won't reach them again. At the same time, it must not obscure the order completion: first the confirmation, then the offer.

Guide: First registration after an order

## The upload link

### BT-SendUploadLink

Sends the secured link to the upload module by email. This allows the buyer to upload their print templates later without logging in.

```html theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
<form action="~FORM-SendUploadLink~" method="post">
   ...
   <input type="submit" name="~BT-SendUploadLink~" value="absenden">
</form>
```

> [!NOTE]
>
> The tag is permitted on the order receipt confirmation page and on the template for sending an upload link.

Guide: Opening the upload module with a secured link

## Tag overview

| Tag | Single tag | Range tag | Negative range tag | Template |
| - | - | - | - | - |
| `BT-ExternLogin_facebook` | yes | yes | yes | Login page (`ws_login.htm`) |
| `BT-SetPassword` | yes | – | – | Login page, login for closed shops |
| `BT-SubAccountCreate` | yes | – | – | Login page |
| `BT-CreateAccountAfterGuestOrder` | yes | yes | yes | Order receipt confirmation (`ws_confirm.htm`) |
| `BT-CreateAccountAfterGuestOrder_facebook` | yes | yes | yes | Order receipt confirmation |
| `BT-SendUploadLink` | yes | – | – | Order receipt confirmation, upload link template |

None of them is a loop tag.

## Related topics

* Guide: Login and registration
* Guide: External login with Facebook
* Reference: Buttons in the order process


## Related topics

- [CEA- (Connecting external accounts)](https://dokumentation.websale.de/en/v8s/referenz/tags/cea.md)
- [Customer, login and account](https://dokumentation.websale.de/en/v8s/referenz/tags/ws/kunde-anmeldung-und-konto.md)
- [Customer, login, and customer account](https://dokumentation.websale.de/en/v8s/referenz/konfigurationen/shopkonfiguration-shop-config/kunde-anmeldung-und-kundenkonto.md)
- [Account](https://dokumentation.websale.de/en/frontend/referenz/aktionen/account.md)
- [accounts - User accounts](https://dokumentation.websale.de/en/konfiguration/accounts-benutzerkonten.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.