November 19, 2011 at 3:05 pm #4814coolvibeMember
I am planing to edit eStore plugin, basically the add to cart button submits the form (with some hidden input fields) and the shopping cart shows up on detecting that product has been added to the cart.
Now, I am planning to edit this functionality instead of full page being submitted, the form (add to cart button) gets submitted and the shopping cart shows up (via ajax calls) to do so which files I should be editing.November 20, 2011 at 2:16 am #38683
Update: See posts below.July 17, 2012 at 5:14 pm #38684mrjosephMember
I’ve been thinking about adding this.
Just wanted to know when a user clicks add to cart what script is called to perform the add?July 18, 2012 at 12:45 am #38685
This option has been added to the plugin. You can enable it using the following instruction:
1) Go to eStore Settings -> Advanced Settings interface.
2) Check the “Enable Ajax on Add to Cart Buttons” option.
3) Save the settings.
Now the add to cart buttons will add items using ajax.July 26, 2012 at 3:20 am #38686jackiepetersMember
Hey, for some reason the .on on line 4 was causing errors for me. I changed it to .live and it worked awesome, just wanted to let you know. Thanks for the update!July 26, 2012 at 10:43 pm #38687
Thank you for notifying. You most likely have an old version of JQuery library included on your web page:
.live() has been deprecated in latest version of JQuery. Using .on() is the better option but if it works then it worksAugust 11, 2012 at 7:16 pm #38688arturkhMember
I changed it to “1” but cart shows empty until I reload the page.
I use this line in header.php for cart:
<div id="viewcart"><?php echo do_shortcode("[wp_eStore_display_compact_cart2]"); ?></div>
I just wanted you to know.August 12, 2012 at 6:17 am #38689
Update: All our shopping cart shortcodes now work with the ajax option.
You are using a compact cart. The ajax option works with the full shopping cart at this stage. Use the following shortcodes to use the ajax add to cart option:
[wp_eStore_cart]June 7, 2013 at 10:31 pm #38690bjspetprojectsMember
Same problem – solution worked great! Thank you!October 30, 2014 at 7:29 pm #38691trendicoffMember
I’m having issues with the compact cart and enabling Ajax. When someone adds a product to cart, the compact cart appears but with no clickable link, just plain text. Any ideas?October 31, 2014 at 3:24 am #38692
Which compact cart shortcode are you using? Can you post a link to the page where we can go and check the behavior on your site?August 15, 2018 at 11:31 pm #38693clem90Member
I use this option and it’s very slow. Around 5 or 6 second before the product is ad to the cart.
You can try here:
It’s normal or is there a way to speed up this option ?
ThanksAugust 16, 2018 at 5:32 am #38694
This issue is external to the plugin. You have something on your site that is making the ajax query to be slow. I see the following error in console:
Slow network is detected. See <URL> for more details. Fallback font will be used while loading
The following test should be helpful:
- You must be logged in to reply to this topic.