Skip to content
  1. Extras
  2. UserEvents
  3. Snippets
  4. ue.order

Snippet ue.order ​

Checkout/event booking snippet ue.order

Snippet ue.order

Parameters ​

ParameterDefaultDescription
tplue.orderOutput chunk
monthLimit1Month limit
resourceResource ID for the event
deliveriesDelivery method ID(s) to include
paymentsPayment method ID(s) to include
orderActionAction on order "order". Redirect to the specified URL
submitActioneventAction on order "submit". Default "event" — create event. "order" — create minishop order and event
userFieldsAssociative array mapping order fields to user profile fields, format "order field" => "profile field"
requiredFieldsList of required fields
processedBlocksJSON-encoded string of chunks to process
weekDayDisabledList of disabled weekdays. E.g. "saturday,sunday"

Подсказка

You can also use other general pdoTools parameters

Output ​

The snippet works with a Fenom chunk and passes 5 variables:

  • order — order array from the user session
  • profile — user profile fields array
  • form — array of user-submitted data. May include:
    • email — customer email
    • receiver — recipient name
    • phone — phone number
  • other values set via the &userFields parameter
  • payments — payment methods array
  • deliveries — delivery options array for the order

Placeholders ​

To see all available order placeholders, use an empty chunk:

fenom
<pre>
{'!ue.order' | snippet: [
  'tpl' => '',
]}
</pre>

Creating an order ​

This snippet should be used together with others on the checkout page:

fenom
{'!ue.order' | snippet} <!-- Order form, hidden after order is created -->
{'!ue.get.order' | snippet} <!-- Order info output, shown after order is created -->