Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Back button from Paypal page brings me to an error page.

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Back button from Paypal page brings me to an error page.

  • This topic has 7 replies, 3 voices, and was last updated 13 years, 9 months ago by admin.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • August 1, 2011 at 8:42 pm #3951
    tzyyhui
    Member

    I am testing out the shopping cart. When I am Paypal page and press “Back” button, I see the message below:

    “Either your shopping cart is empty or the PHP Session on your server is not working correctly. Please check this article”

    I test out many example sites on “http://www.tipsandtricks-hq.com/”, most of them have the same behavior. Only couple sites are behaving correctly which is the back button will bring you back to your site page where shopping cart info still there.

    Any suggestion how to fix this?

    August 2, 2011 at 12:46 am #34996
    amin007
    Participant

    There is nothing to fix… this is how the browser works when HTTP POST is involved in some cases (this is for security). Have you noticed how sometimes when doing online banking you cannot use the back button of the browser in certain cases? Its the same thing.

    Without going too much into the details, these posts should give you some more pointers:

    Clicking back button from PayPal site adds additional item to cart

    https://support.tipsandtricks-hq.com/forums/topic/refresh-web-page-increases-shopping-cart-item-quantity-help?replies=5#post-10829

    August 2, 2011 at 6:38 pm #34997
    tzyyhui
    Member

    I beg to differ. I don’t see this kind of behavior in other shopping cart.

    First, the message displayed when click Back button from Paypal is not professional and misleading.

    “Either your shopping cart is empty or the PHP Session on your server is not working correctly. Please check this article”. User has no idea why they see this kind of message. It is even worse than seeing incorrect items logged on their shopping cart. The first impression from the user would be that the site is not functional.

    I sample some example sites on the Tips and Tricks homepage. One site has “better and more acceptable” behavior. The site is “theswishdock.com”. They have message like

    “Please wait, your order is being processed. You will be redirected to the payment website shortly.

    Processing Order…”. Although you can never get out of that page, it is better than the misleading message as I described in the first paragraph.

    There is one site on the example site which works correctly. The site name is “ww.tattoo.yoso.eu”. If you click back button from Paypal, it goes back to the main site.

    I need solution like the tattoo site. If they can do it, then there must be a way to get around.

    Thanks much. I appreciate your help.

    August 3, 2011 at 2:44 am #34998
    amin007
    Participant

    Just so you know… There is a settings field called “Cancel URL” in eStore where you can specify a URL value. So when your customer lands on PayPal they can click on the cancel button and it will take them to that page. PayPal knows that the back button may not work on automatic HTTP form submission (not all shopping cart uses the same submission technique) so they offer this option.

    The tattoo site you mentioned is using a “Buy Now” or “Subscription” type button where automatic form submission do not happen and this is not a problem in the first place. If you use buy now type buttons on your site you will see the same behavior too. This post explains the different types of buttons:

    https://support.tipsandtricks-hq.com/forums/topic/different-types-of-payment-buttons-and-their-behaviour

    In terms of changing the message that gets displayed… you can modify the “eStore_payment_submission.php” file and change the message to say whatever you want it to say. Search for the following line in that file then change it:

    Either your shopping cart is empty or the PHP Session on your server is not working correctly

    August 8, 2011 at 7:00 pm #34999
    tzyyhui
    Member

    Thanks amin007.

    I update the eStore_payment_submission.php and replace the text

    “Either your shopping cart is empty or the PHP Session on your server is not working correctly”

    with some html text I want, and also use meta tag to automatically refresh and redirect to my site. The code is like this:

    <head>

    <meta http-equiv=”refresh” content=”0;url=http://mysite”>

    </head>

    It works okay, acceptable. so I think I am done with this question.

    Thanks for your support.

    August 9, 2011 at 2:14 am #35000
    amin007
    Participant

    Just another alternative… you can check the “Enable Fancy Redirection On Checkout” checkbox which will redirect the customer slightly differently and when your customers use the back button they will come back to your site.

    August 17, 2011 at 4:03 pm #35001
    tzyyhui
    Member

    Thank you.

    I have another question. I want to create a link on WSO which will use WP Estore buy now function. I have read the thread:

    https://support.tipsandtricks-hq.com/forums/topic/buy-now-on-a-3rd-site

    which discussed 2nd option: http://www.your-domain.com/?wp_eStore_buy_now=1

    But it did not work for me. It just landed on my home page.

    Please advise. Thanks.

    August 18, 2011 at 12:56 am #35002
    admin
    Keymaster

    Do you have the eStore extra shortcodes plugin active? That functionality comes from that plugin. This document has full details:

    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460#extra

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ