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

eStore – want to keep cart contents unless successful transaction

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – want to keep cart contents unless successful transaction

Tagged: download link, empty cart, not empty cart, return cart

  • This topic has 18 replies, 5 voices, and was last updated 13 years ago by goldstrikn.
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • Author
    Posts
  • April 13, 2012 at 3:10 pm #6084
    Keith
    Member

    Is there any possible way NOT to empty the cart UNLESS the transaction is successful?

    If a user fills a cart, uses a credit cart and it gets declined… in some cases they aren’t going to want to fill the cart again to try a different card…. what to do?

    April 14, 2012 at 1:07 am #44033
    admin
    Keymaster

    Which payment gateway are you using?

    April 14, 2012 at 5:23 pm #44034
    Keith
    Member

    both PayPal and Auth

    April 14, 2012 at 9:15 pm #44035
    Keith
    Member

    are there any strange implications to just commenting out all the commands in the reset_eStore_cart function? besides the obvious that the cart always remains intact.. for this project I’m OK with that… please let me know! thanks

    April 15, 2012 at 3:55 am #44036
    admin
    Keymaster

    There is no strange implications that you have to worry about. However, I think the following tweak might be better.

    1. Open the “eStore_payment_submission.php” of eStore plugin

    2. Search for the following line and delete it when you find it:

    reset_eStore_cart();

    There will be a few occurrences so delete them all

    April 15, 2012 at 1:46 pm #44037
    Keith
    Member

    awesome thanks.. will do that now

    April 16, 2012 at 7:21 pm #44038
    Studio Sweat onDemand
    Member

    I noticed when I deleted those lines in “eStore_payment_submission.php” I found an issue. After a successful purchase my shopping cart still contained the items still even with the “?reset_eStore_cart=1” added on to the redirect URL.

    So I dug and found that the reset function wasn’t being called. The wp_eStore1.php only checked for $_POST and not the _GET. So klock75 (and admin) you might want to make a note of this if you run into the same problem.

    April 28, 2012 at 10:32 pm #44039
    goldstrikn
    Participant

    So, I’m running into this same issue. After a successful purchase, I get taken back to my thank you page, but the items are still in the cart? They should not be there anymore. How do I fix this?

    Please help! I need to go live in 2days.

    April 29, 2012 at 2:09 am #44040
    admin
    Keymaster

    What payment gateway are you using? Please post a link to the page where I can go and add an item to the cart.

    April 29, 2012 at 10:40 am #44041
    goldstrikn
    Participant

    Hi admin,

    I’m using paypal. Here is the link, and you can do test purchase I have sandbox mode on. [http://www.wpthemesforevents.com/shopping-cart]

    to add an item you can go here [http://www.wpthemesforevents.com/2012/04/28/test-post]

    I can also provide admin access if necessary

    Please help asap.

    thanks,

    G

    April 29, 2012 at 12:39 pm #44042
    admin
    Keymaster

    Thank you… looks like you have specified PDT Token in your settings but PDT is not working correctly for this PayPal sandbox account. It has been found that sometimes it doesn’t set all the profile parameters correctly at the time of creating the PayPal sandbox merchant account. Here is one user whose PDT wasn’t working in his PayPal sandbox account:

    https://support.tipsandtricks-hq.com/forums/topic/estore-payment-verification-failed

    An easy way to find out if PDT is working correctly on your account is to look for the transaction data in the “Thank You” page URL when you land there after the payment. Do you see the transaction data in the URL of your “Thank You” page after the payment (see example below)?

    [http://www.wpthemesforevents.com/thank-you/?tx=SOMETXNID&amt=20&…..]

    April 29, 2012 at 10:48 pm #44043
    goldstrikn
    Participant

    Hi admin,

    Well, I follow instructions and yes indeed it works. I received the email transactions and the thank you page shows the links for downloads so as far as that it works.

    However, if a buyer goes through paypal and successfully purchases, but decides not to go back to the website (buyer didn’t click on paypal transaction to link back to the store), then the items in the cart remain. This is wrong in my opinion. Because if the same visitor who purchased earlier in the day wants to visit again the website for other products the same items that were purchased earlier will appear in the cart. The cart should clear once the successful payment was made and the ipn was sent to the website.

    Let me know if I missed a step or what else is necessary to get the cart to clear (without having the purchaser returning to the website, right after payment).

    April 30, 2012 at 12:50 am #44044
    Peter
    Member

    Hi,

    Are you by any chance using a caching plugin with your setup?

    If so can you please try deactivating this plugin and see if this is causing the issue?

    April 30, 2012 at 1:28 am #44045
    goldstrikn
    Participant

    yes I am using a cache plugin. I was thinking of that as well. But I can place a particular file/folder/path in the cache plugin setting so it wont cache that particular file/folder/path. What should I look for and place in its place?

    April 30, 2012 at 1:44 am #44046
    goldstrikn
    Participant

    I tested once more. I deactivated my cache plugin and the same scenario happens. The items are still left in the cart after a successful purchase. Please let me know what else I need to do.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • 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