Page 1 of 2

Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Sun Feb 08, 2026 9:38 pm
by ArtcoInc
So, I was shopping online with my local drugstore (free delivery, to my house, in less than 30 minutes :+1: ), and ..

After completing the order, the final page displayed all the order info (items, cost, payment method, delivery method, delivery address, etc), and had a "Print This Page" button on the top of the screen.

Normally, out of habit, I always do a <ctrl>-P to print the final order screen whenever I buy something online (In paper we trust :D ).

So, I thought ... How can I do this in Phoenix? Let's see ...

Checkout_Process.php displays ALL of the order info, and it would be simple to add a 'Print This Page' button here. But, this is BEFORE the order is finalized. Probably good enough, right?

On the other hand, Checkout_Success.php is AFTER the order is finalized, but nothing is being shown on the screen, and would require having to re-create the entire order info in order to 'print' the page.

Yes, the customer should get an email with the order info, but ... 'belt and suspenders' (or, 'belts and braces' for you Brits 8-) ).

Thoughts?

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 10:02 am
by burt
Are you not describing account_history_info.php ?

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 3:44 pm
by ArtcoInc
Yes, but ...

The idea was to provide a simple, 'at the time of purchase' option to create a hard-copy of their order.

1) Your way, the customer would have to know to go there to review their order. Multiple clicks. And I'd still have to add a "Print this Page' button there (perhaps not a bad idea 8-) )

2) I have the PWA (Purchase Without Account) add-on installed. Once the order has been finalized, there is no 'account' where a Guest could view their Account_History_Info.

Thank you, though, for your feedback :+1:

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 4:17 pm
by Omar_one
what about this Invoice on Checkout_success created by@Kofod95 app.php/addons/free_addon/invoice_on_checkout_success

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 4:43 pm
by ArtcoInc
@Omar_one

Unfortunately, it looks like it won't work with PWA.

However, I may be able to adapt it ... :D

Thank you!

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 5:10 pm
by Omar_one
why not! as the invoice is a copy of the one in admin, and the PWA has invoices also, I haven't tried it. :D so I may be mistaken

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Mon Feb 09, 2026 11:09 pm
by ArtcoInc
@Omar_one It took some work to adapt it to an earlier version of Phoenix, and tweek the Invoice to work with PWA, but I think I got it 8-)

Thank you for the suggestion.

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Thu Feb 12, 2026 4:41 pm
by ArtcoInc
Working with the suggestion from @Omar_one, I was able to get this to work (even with my old version of Phoenix 8-) ). Now, any customer (both registered and guest) can print out a copy of their invoice at the time-of-purchase. :+1:

So, with this new additional functionality, what else could I do? :lol:

Adding one more column to account_history.php, now any registered customer can print out a copy of their invoice for any order, past or present ...
Screen Capture - 2026-02-12.jpg
This could be useful if one does a lot of B2B business, where the customer's accounting department might ask for an invoice. In the past, I would have to generate one for them and send it to them. Now, they can just print one out on demand, whenever they need.

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Thu Feb 12, 2026 6:18 pm
by Omar_one
ArtcoInc wrote: Thu Feb 12, 2026 4:41 pm So, with this new additional functionality, what else could I do? :lol:
maybe adding possibility to send (share) the invoice to someone by email using the mail function.

Re: Print this page - Checkout_Process.php -vs- Checkout_Success.php

Posted: Thu Feb 12, 2026 10:19 pm
by frankl
I have a system which creates a new tab on the admin orders page 'Send Order Copy'
order_copy.png
I sends PDFs (my preference) but it could be altered to send whatever I guess