Question on $transaction variable in smarty template

Ka Wai Cheung's Avatar

Ka Wai Cheung

02 Oct, 2013 07:07 PM

Hi there-

In your smarty template syntax, you have variables available for a transaction. E.g. "{$transaction.transactedDatetime}".

However, in the API, a transaction is a list off of invoices. I believe this is there in case there are multiple failures on a particular invoice, for instance. I would expect to be able to cycle through transactions in the smarty syntax just like I can with say $items.

Should I be assuming then that $transaction always refers to the last transaction for an invoice, since it's only a single object?

-Ka WaI

  1. 1 Posted by Dean on 02 Oct, 2013 07:49 PM

    Dean's Avatar

    Ka Wai -- You're correct, that's just the last transaction for an invoice. Did you have use case for needing to cycle through transactions?

  2. 2 Posted by Ka Wai Cheung on 03 Oct, 2013 02:34 AM

    Ka Wai Cheung's Avatar

    Hey Dean-

    Nope, no use case. Just wanted to know what to expect since the smarty syntax and API have different cardinality on transactions.

    -KC

  3. Marc Guyer closed this discussion on 03 Oct, 2013 02:21 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM