Skip to content
  1. Extras
  2. msPointsIssue
  3. Snippets
  4. msPointsIssue.Order

msPointsIssue.Order

The msPointsIssue.Order snippet calculates order cost. It acts as a wrapper: runs the logic, fills placeholders, then runs snippets from the elements list in order. The last one must be the native msOrder snippet.

msPointsIssue.Order

Parameters

ParameterDefaultDescription
tplmsPointsIssue.orderOutput chunk
userFieldsAssociative array mapping order fields to user profile fields: "order_field" => "profile_field".
processedBlocksJSON-encoded string of chunks to process

Подсказка

You can also use other general pdoTools parameters.

Output

The snippet works with a Fenom chunk and passes 5 variables into it.

Order form

Use this snippet together with others on the checkout page:

modx
[[!msCart]] <!-- Cart output -->
[[!msPointsIssue.Order]] <!-- Checkout form, hidden after order is created -->
[[!msGetOrder]] <!-- Order info, shown after order is created -->