WC- tags build this greeting. Five tags are enough for this, because the shop configuration does the actual work.
Reference: WelcomeCookie section in the shop configuration
All tags are permitted on all templates. You define which fields are available in the
WelcomeCookie section of the shop configuration.Two checks before the greeting
Before you display a name, two questions need to be answered: is the function switched on at all, and is there data for this visitor.WC-Active queries a pure configuration setting. The bracketing is mainly useful during setup, because it immediately shows in the template whether the function has been enabled at all.If the function is switched off, all tags except
WC-Active output nothing, and their bracketings do not apply. So you can also write the greeting block without {WC-Active}. The nesting does, however, make the intent in the template more readable.The fields from the cookie
WC-Data_ followed by the technical field name outputs the respective field.
You determine which fields exist in the
WelcomeCookie section of the shop configuration via the Fields subsections and their AddressField parameter. There you enter the technical field names separated by commas, and exactly these names are what you then append to WC-Data_.All field tags work as bracketing when the field is filled. Use this for fields that not every customer fills in, for example a salutation or a title.
The way back to anonymous
Not every visitor is the same person. On a shared computer, the shop would otherwise greet the wrong person by name.WC-DeleteLink is exclusively a single tag. The link deletes the WelcomeBack cookie, and the greeting does not appear until the next login.The generated link uses HTTP, not HTTPS. This is not critical, because nothing is transmitted except the command to delete the cookie. If your shop runs exclusively via HTTPS, check the link once in the finished template anyway.
What is in the cookie
The cookie itself contains no names. It only contains an identifier that the shop system uses to look up the data in its own database. The visitor’s browser therefore does not carry any address data around.
The cookie is called
ws_<Shopkennung>_<Sprache>_welcome_cookie. How long it is valid is also specified in the WelcomeCookie section of the shop configuration.A complete example
WS-LoginLink on the page WS- (General tags)
The tags at a glance
All tags are permitted on all templates. The field tags and
WC-DeleteLink sensibly belong in the {WC-Data} range, but this is not mandatory.
Related topics
- Reference:
WelcomeCookiesection in the shop configuration - Guide: Login and registration
- Reference: WS- (General tags)
