- Posts: 23
- Thank you received: 2
Force a logout out at end of a purchase?
Sorry if I am stating the obvious
Please Log in or Create an account to join the conversation.
If I refresh after the purchase, the phantom cart goes away (CTRL-F5 on my browser before a new purchase and cache dump on the site made no difference to the amount in phantom cart) but I am still at the following url:
Trying your idea now..
EDIT:
webcandy - just so you know, nicolas never closed the php brackets in that file, even after his recommended change. I am going to remove that line of code to keep it in the same "status" for whatever file it goes to next.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
After entering the card and hitting process, I am immediately sent somewhere where I do not have permission to go to and given a message: "Please login first".
There is only one menu item that is locked down by permissions, unless it tried to redirect to some part of the purchase process. Either way, I did loose the phantom cart, but was redirected somewhere I should not be allowed (according to Joomla!).
Please Log in or Create an account to join the conversation.
You can add "sleep(20);" before the header code to delay the redirection so they can see the message. The number is in seconds.
So your code will look like:
EDIT: you might have to move around the sleep to get the exact results you want. Not positive.
Please Log in or Create an account to join the conversation.
So I changed that redirect to a blank, and tried clicking the X again. No problem, it works fine.
Now, I tried another purchase, and end up back somewhere that I should not be... I guess.
One thing here, I am forcing an https using both .htaccess and akeeba admin tool. I really doubt that is having an effect here, because if I just type the address into a browser, it will automatically redirect to an https.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It wants me to log in no matter what now, like even when I go to the site, not logged in. That could be a cause of this, but I have no idea what is doing it.
That was not happening this morning and I have no idea what change did it.... lovely.
Please Log in or Create an account to join the conversation.
That sucks a lot and I hope it's not hikashop related
Please Log in or Create an account to join the conversation.
I just changed the permissions
EDIT: If i hit the HOME button on the menu, I a redirected to the alias: www.domain.com/home and am not requested to log in.
reconfigured the way the url is printed in the browser to try and find cause. I don't think this is any help but...
EDIT 2 - I am going to use the "sledgehammer" method here and backup the site. I will uninstall components one by one to see if I can get to the regular domain address. Then reload the backup after I find the culprit.
Please Log in or Create an account to join the conversation.
If you enter a URL in the "return URL" parameter of your payment method, the default thank you page of HikaShop is not used and instead HikaShop redirects you to that return URL.
So I would recommend to check on that.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Test 1
Test 2
Nicolas, I really appreciate all the help webcandy and you are giving me, but I am starting to feel like this is something the software should do. At least, based on your first repose to this and the following suggestions related to settings in Joomla and Hikashop. All of which I have already had set to your recommendations. I am literally at a standstill and cannot test the clients real bank money transfers. I can type fake credit card numbers in all day, but this is a serious problem now.
I am happy to admit if I made a mistake, and I think I have shown that. Please help in any way you have the time to.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.