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 order comment by using the {CartComment} tag. In this way, you can also add a comment field to the shopping cart.
The comment left by the customer on the order can be printed using the {OrderComments} tag.
The terms and conditions can be set either on the admin panel page or on their own 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.
When using the tag on the one-page checkout, remember to close the tag in a <div> or <fieldset> element to which you assign the tag name as the 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. Default value: true.
before/after:With the
beforeandafterattributes, you can define content that is output before or after the content produced by the tag.Allowed values: text that may contain HTML and Interface markup.
E.g.
before:'<p>This markup appears before the tag's own content.</p>'.after:'<p>This appears after the tag's own content.</p>'
If the tag does not produce any content, the content of the
beforeandafterattributes will also not be displayed.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: text that may contain HTML and Interface markup.
E.g.
or:'Content not found.'
