Prints the form for entering a shipping address or the already entered shipping address.

Description

You can manage the shipping address selection tool by using the mode attribute: if the customer has multiple shipping addresses, the tag can print e.g. a selection list from which the customer will be able to select the desired address.

The tag doesn't print anything if there are no products in the shopping cart.

Syntax

{CheckoutShippingAddress(
    mode: string
)}

Scope

Required scope: globaali

This tag is used only when shipping information is entered at checkout (multi-page checkout/single-page checkout).

If you use the tag in the single-page checkout, make sure to place the tag in the <div> or the <fieldset> element and use the tag's name as that element's id.

Attribuutit

mode:

Defines whether the tag should print the form or the shipping address that has already been saved via the form.

Allowed values:

  • 'preview': Prints the previously entered primary shipping address.
  • 'select': Prints the selection list that contains all previously saved shipping addresses and links to the form for editing them.
  • 'form': Prints the input form for entering a shipping address.
  • 'auto': If the customer has multiple shipping addresses, the selection list will be printed – otherwise the form will be printed (default value)

The links for editing shipping addresses on the select list don't work at single-page checkout.

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.

escape:

Adds an escape character before quotation marks in the output.

The attribute makes it easier to process the tag-produced content when using JavaScript.

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

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.'