order_payment_history

Generates a history of payments for an order based on ID when applicable

Example

[%order_payment_history id:'[@order_id@]'%]
    [%param *body%]
        <p>[@payment_amount@] Paid on [@date_paid@] with method [@payment_name@]</p>
    [%/param%]
[%/order_payment_history%]

Usage

The order_payment_history function generates a list of payments made to an order based on the ID parameter.

Parameters

Name Options Description
id:'' Order ID Order ID you wish to query for a list of payments
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs an array for each option in the tag
*footer HTML & b@se tags Renders a single usable space below the body
ifempty:'', *ifempty HTML & b@se tags If the order_payment_history returns no results, it'll load this block instead

Data Tags (body)

Name Order Field Example Options
[@count@] 0 A integer count that increases by one with each body param rendered
[@date_approved@] 2018-06-20 09:09:34 The date the payment was approved (YYYY-MM-DD HH:MM:SS)
[@date_paid@] Date 2018-06-20 09:09:34 The date the payment was submitted & paid (YYYY-MM-DD HH:MM:SS)
[@payment_amount@] Amount Paid 80.00 The payment amount made
[@payment_name@] Payment Method MasterCard The name of payment method used

Was this article useful?

Be notified when this page is updated. Optional.