SimpleCart v2 Snippets scPaymentMethods

The scPaymentMethods snippet is used for listing the different payment methods that are available for an order. It is included in the scCheckoutForm chunk.

Standard Usage

[[!scPaymentMethods]]

Properties

The following properties are available on this snippet.

paymentKey

Default: paymentMethod

The name of the POST parameter that contains the payment method ID.

tpl

Default: scPaymentMethod

The name of a chunk to display each of the delivery methods with. See the default chunk here.

The available placeholders include:

  • [[+method.id]] the ID of the method.
  • [[+method.name]] the name of the delivery method, not to be confused with...
  • [[+method.title]] the translated title of the delivery method.
  • [[+method.idx]] the order of the delivery method (in the database, not necessarily the current result set).
  • [[+method.description]] the translated description for the methos.
  • [[+method.selected]] either empty or the string selected to indicate the current item should be selected. This is based on the &selected or &selectedFirst properties.
  • [[+method.paymentKey]] contains the value of the &paymentKey property.
  • [[+method.addContent]] may contain additional content as dictated by the method.
  • [[+method.price_add]] contains the additional costs involved with the method.

filterMethod

Comma separated list of method IDs to limit the results to.

selected

The ID of a method to mark as selected.

selectedFirst

Default: true

Indicates if the first item should be selected by default.

outputSeparator

Default: \n

placeholderPrefix

Default: method.

delivery

When the ID of a delivery method is provided, the available payment methods will be restricted to those connected with that delivery method.