Support

Home Forums Event Espresso Premium Display the P.O. / S.O.# at the top of the invoice

Display the P.O. / S.O.# at the top of the invoice

Posted: June 29, 2023 at 11:07 am

Viewing 5 reply threads


Diggetydog

June 29, 2023 at 11:07 am

Is there a shortcode for this piece of data? We see the template has [PAYMENT_LIST_*], which we assume contains that data. Is there a way to get they specific component into it’s own shortcode?


Diggetydog

June 29, 2023 at 11:11 am

Is it [PAYMENT_PO_NUMBER]? And if so is there a document that has all the shortcodes listed somewhere?


Tony

  • Support Staff

June 29, 2023 at 11:31 am

Hi there,

So if I follow what you are requesting correctly, “P.O. / S.O.#” would be assigned to a specific payment made within a transaction which means there isn’t a shortcode to pull in the value other than when listing the payments made in the transaction.

It gets tricky once you recognize that transactions can have multiple payment objects within them, so if a transaction has multiple payments within it and you say ‘give me a P.O number’… do we always just assume the first payment should be used for the value requested here?

It would be possible to create a custom shortcode to pull in the ‘first’ (or last) payment within a transaction and use the value from that, but it’s not something we have available by default.


Diggetydog

July 4, 2023 at 8:05 am

Yes we would assume that the first payment would be used for the value.
The administrators deal with a lot of government organizations who use P.O.s – They register without paying and then office staff add the p.o. to the transaction. this then gets printed/emailed to the organization.
I realize it is displayed on the receipt in the [payments_list_*]. The administrators would like the P.O. displayed separately within the “Order Confirmation” section of the receipt. This helps both admin and clients.


Diggetydog

July 4, 2023 at 8:16 am

So I can use “EE_Payment_Shortcodes.lib.php” to build a function to create the shortcode.


Tony

  • Support Staff

July 4, 2023 at 9:30 am

Hi there,

I would use EE_Transaction_Shortcodes and I have an example of adding a shortcode to that library here:

https://gist.github.com/Pebblo/41e82e9665e041f9fba092ab57de4891

Its not exactly what you are asking for but should help point you in the right direction.

Viewing 5 reply threads

The support post ‘Display the P.O. / S.O.# at the top of the invoice’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso