Prints the option to accept terms and conditions, a comment field as well as a button for confirming the order.
Kuvaus
The tag also prints a link to the online store's terms and conditions at the address /terms/.
You can also print a separate comment field and an order comment by using the {CartComment} tag. In this way, you can also add a comment field to the shopping cart.
Once the customer has placed the order, the comment can be printed by using the {OrderComments} tag.
Terms and conditions can be defined either in the admin panel, on the page or on a separate content page.
Learn more about creating terms and conditions in different ways.
Syntaksi
{CheckoutAcceptTerms(
ajax: boolean,
notifications: boolean
)}Näkyvyys
You may want to use this tag mainly on the checkout preview page and at 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
ajax:Sets the tag to return either the whole page or only the content it produces as a response to an AJAX request when the form is sent by using JavaScript.
Allowed values:
- true: returns only the content produced by the tag.
- false: returns the whole page (default value).
notifications:Defines whether to print notifications related to terms and conditions.
The tag prints the content of the
'TermsError'notification.Allowed values:true/false. The default value is true.
after/before:By using the
afterandbeforeattributes you can define content that is output either after or before the tag's output.Allowed values: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
afterandbeforeattributes 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:HTML and Interface markup.
E.g.
or:'Sisältöä ei löytynyt.'
