https://www.somwehere.com/checkout_confirmation.php

Open to all! Ask other shopowners for help.
Post Reply
MyGamesShop
Contributor
Posts: 131
Joined: Wed Mar 10, 2021 3:02 am
Phoenix Version: v1.1.0.6
Has thanked: 8 times
Been thanked: 5 times

https://www.somwehere.com/checkout_confirmation.php

Post by MyGamesShop »

I had to use my own site and I wanted to go back to checkout_confirmation.php which brought up:

Document Expired
This document is no longer available.
The requested document is not available in Firefox’s cache.


Which I completely understand why I can't and shouldn't and that an invoice is in the history etc, but is there a better way to handle this kind of failure such as taking the customer back to the title page?

Just asking as I gave me a Ugh! moment.


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

Re: https://www.somwehere.com/checkout_confirmation.php

Post by burt »

MyGamesShop wrote: Sun Mar 16, 2025 2:14 am I had to use my own site and I wanted to go back to checkout_confirmation.php
Where from?
And how?

I guess from checkout_success and I guess by using the Browsers back button.

We can't do anything about what a browser allows you to do, nor what it then says when it allows you.

You could try using javascript, but that's not something we'd want in Core Code.
https://emma-delaney.medium.com/how-to- ... b30a50e6e6
I am not here to build for you.
I am here to build with you. Let's help each other.
MyGamesShop
Contributor
Posts: 131
Joined: Wed Mar 10, 2021 3:02 am
Phoenix Version: v1.1.0.6
Has thanked: 8 times
Been thanked: 5 times

Re: https://www.somwehere.com/checkout_confirmation.php

Post by MyGamesShop »

Thankyou for the reply Burt, yes I thought that would be the case and that you confirmed it.

Today I asked Iask.ai the same question with some pretty similar results except for session management
which would probably provide problems if the customer chose to make another purchase in the same session.

'in php can a webpage be redirected to another if a user hits the back button on a web brwser'

You do not have to reply to this thread or add any further comment.

ta moochly


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