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

Open to all! Ask other shopowners for help.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

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

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

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

Post by burt »

Are you not describing account_history_info.php ?
I am not here to build for you.
I am here to build with you. Let's help each other.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

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

Post 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:
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

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

Post by Omar_one »

what about this Invoice on Checkout_success created by@Kofod95 app.php/addons/free_addon/invoice_on_checkout_success
Last edited by Omar_one on Mon Feb 09, 2026 5:03 pm, edited 1 time in total.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

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

Post 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!
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

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

Post 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
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

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

Post 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.
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

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

Post 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.
You do not have the required permissions to view the files attached to this post.
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

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

Post 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.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

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

Post 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
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply