Prints the customer account-related functions and menus.

Description

The contents printed by the tag depends on whether the customer is logged in:

  • If the customer isn't logged in, the following links are printed:
    • Order tracking
    • Log in
    • Signup (depending on the value of the register attribute)
  • If the customer is logged in, the following links are printed:
    • Customer account
    • Order tracking
    • Log out

Syntax

{CustomerNavigation(
    register: boolean
)}

Scope

Required scope: globaali

Tags with global scope can be used on any template and in any tag.

Attribuutit

after/before:

By using the after and before attributes you can define content that is output either after or before the tag's output.

Allowed values:The HTML and Interface markup

E.g.

  • before: '<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'
  • after: '<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'

If the tag does not produce any content, neither the content of the after and before attributes will be output.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values:The HTML and Interface markup

E.g. or:'Sisältöä ei löytynyt.'

register:

Specifies whether the link to the signup page should be printed as well.

Allowed values: true / false. The default value is false.