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 3 years, 7 months ago by jele826.
-
AuthorPosts
-
May 9, 2012 at 6:21 am #6278morleyMember
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 #44883adminKeymasterNo, 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 #44884morleyMemberThe 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 #44885adminKeymasterLets 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 #44886morleyMemberUnfortunately, 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 #44887adminKeymasterIt 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:
March 30, 2021 at 9:49 pm #82814jele826ParticipantHow do I add that feature to my cart?
March 31, 2021 at 2:57 pm #82819wzpModeratorThis 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 #82820jele826ParticipantYes, 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?
-
AuthorPosts
- You must be logged in to reply to this topic.