Prints a list for selecting a payment method at checkout.
Kuvaus
The shopping cart must contain items, or the tag will not print anything.
Syntaksi
{CheckoutPaymentMethods(
ajax: boolean,
exclude: string,
includetax: boolean,
notifications: boolean,
preselect: boolean
)}Näkyvyys
Toimii näkyvyydessä: globaali
This tag is used only in the checkout part in which the payment method is selected (multi-page checkout/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).
exclude:Excludes the selected payment method from the payment method selection list. The attribute's value is used only if the customer has already selected a payment method.
If the value is set to 'current', the tag won't print the selected payment method.
Allowed values: 'current'/false. The default value is false.
includetax:Determines whether any payment costs are listed with VAT included.
Allowed values:true/false. Default value: true.
notifications:Defines whether to print notifications related to payment methods.
The notifications are printed from the
'Payment'category.Allowed values:true/false. Default value: true.
preselect:Determines whether the online store should set the payment method previously chosen by the customer as default.
Allowed values:true/false. The default value is false.
Payment methods may be subject to country-specific restrictions. According to the Finnish Consumer Protection Act, the online store may not set the default payment method, but the customer must choose the payment method each time separately. In the EU, consumer protection matters are normally governed by the legislation of the consumer's home country.
before: / after:With these two attributes, 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 escape characters to the content printed by the tag, making it easier to use the content in JavaScript code or JSON objects.
Sallitut arvot:- true: the attribute adds escape characters before quotation marks
- false: the attribute does nothing
- json: the attribute adds escape characters to the output, allowing the content to be used in JSON markup.
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.'
