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

Suppress the "Item already exists in the cart" message following page change.

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Suppress the "Item already exists in the cart" message following page change.

  • This topic has 8 replies, 4 voices, and was last updated 4 years, 1 month ago by jele826.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • May 9, 2012 at 6:21 am #6278
    morley
    Member

    Is there a way to suppress this message once a user has navigated to a different page or refreshed the current page. As is, the message doesn’t go away until some other change is made to the contents of the cart. I’m running version 6.6.3. Thanks.

    May 9, 2012 at 10:54 pm #44883
    admin
    Keymaster

    No, its an error message that the customer will only see when he does something that he is not suppose to do. So it is designed to make sure the user knows what went wrong when he tried to add the item to the cart. It will disappear when the user does something else on the cart (add another item, apply coupon, checkout etc.)

    May 10, 2012 at 2:23 am #44884
    morley
    Member

    The message definitely fulfills its purpose, but it looks a bit buggy when a customer continues navigating and the message doesn’t go away. It seems like it should only show when a person attempts to add something more than once.

    May 10, 2012 at 6:23 am #44885
    admin
    Keymaster

    Lets try something… I added a small tweak to the plugin that might help. Please load a new build of the eStore plugin from here:

    https://support.tipsandtricks-hq.com/update-request

    After the update do the following:

    1) Open the “eStore_advanced_configs.php” file and find the following line of code:

    define('WP_ESTORE_RESET_CART_ACTION_MSG_ON_PAGE_RELOAD', '0');

    2) Once you find it change it to the following:

    define('WP_ESTORE_RESET_CART_ACTION_MSG_ON_PAGE_RELOAD', '1');

    Save and update this file and check out what happens with that error massage.

    May 10, 2012 at 3:57 pm #44886
    morley
    Member

    Unfortunately, that didn’t do it. It seems to be calling and suppressing the “You must agree to the terms and conditions” message. You can see that message appear and then disappear as the page is loading. Here’s the page I’m testing it on:
    [67.227.195.150/~cambridf/downloads/prep-books]

    May 10, 2012 at 11:39 pm #44887
    admin
    Keymaster

    It works fine for me (I checked it using Gogole Chrome). I did notice that you have a lot of HTML coding errors on your site though. Its messing up your page rendering. Not all browsers are as forgiving as Chrome so it definitely won’t work as expected unless your fix the HTML errors on your site first.

    This is a good read for you:

    http://www.tipsandtricks-hq.com/when-themes-go-wild-importance-of-using-a-properly-coded-wordpress-theme-2270

    March 30, 2021 at 9:49 pm #82814
    jele826
    Participant

    How do I add that feature to my cart?

    March 31, 2021 at 2:57 pm #82819
    wzp
    Moderator

    This thread is very old. Please make sure you have the latest version of eStore installed. If the issue still exists; please post a LIVE URL link to your store with instructions on how to recreate the issue.

    March 31, 2021 at 3:27 pm #82820
    jele826
    Participant

    Yes, I understand the thread is very old. My question really is how do I enable that feature on my page to prevent a buyer from placing an item in their cart twice?

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 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