Skip to main content
Anyone who logs in to the shop via an external account links that account to their customer account. The same person can have several such links. The tags with the prefix CEA- make these links visible and removable. They are spread across two templates: the customer account overview with the entry point, and the overview page of connected accounts with the actual list. Guide: External login

Two prerequisites

All tags in this group are only available for a logged-in buyer. Without login, they are invalid and return nothing, not even as a negative area tag.
In addition, CEA-Data only works over an encrypted connection. On a page without HTTPS, the tag is invalid and the list stays empty. All links generated by this group are complete HTTPS addresses.

The entry point in the customer account

The customer account overview page (ws_user_account.htm) only shows the notice that links exist, together with a link to the list.

CEA-Overview

Applies if at least one external account is connected. Returns the address of the overview page. A single tag only.
The negative area is worthwhile. A buyer who only logs in with email address and password should not be sent to an empty page.

The overview of connected accounts

The list is on its own template (ws_connected_externaccounts.htm).

CEA-Data

The central tag, in three roles.
These three tags only apply within the loop {@CEA-Data}. Outside of it, they are invalid because they lack the reference to the individual link.
CEA-AdditionalInfo can be empty. If someone set up their external account with a phone number instead of an email address, nothing is returned here. Therefore, bracket the field instead of leaving an empty table cell.
CEA-ID has no meaning for the buyer and does not belong in the display. The identifier is useful as a hook for CSS and JavaScript, for example to target a specific row.

Distinguishing by account type

CEA-LoginType() accepts an account type as a parameter and thereby becomes an area tag: the area applies if the link is of this type.
Without a parameter, the tag outputs the type as text. With a parameter, it compares and outputs nothing itself. This lets you set a separate logo for each provider without displaying the names from the database directly.
The previous documentation only lists facebook as a parameter value. The shop compares the parameter with the stored account type, and there are other providers for external login. Clarify which values occur in your shop with your WEBSALE contact before you check for them.

Removing a connection

Returns the address via which the buyer removes the link. A single tag only, and only valid within the loop.
The link removes the connection without confirmation. Build the confirmation yourself, either as a separate page or via JavaScript; otherwise, a misclick costs the buyer their login method.
The address contains an encrypted parameter that holds the account type and identifier. It cannot be built by hand, and a modified link is rejected. Therefore, always use the tag.

The feedback

After removing the link, the buyer returns to the overview page. Two areas report the result there.
Both areas belong above the list, not below it. The buyer should see the feedback before reading the changed list.

The tags at a glance

Where the tags belong

  • Guide: External login
  • Guide: Login and registration
  • Reference: Buttons for customer account and login
  • Guide: Customer account