Jump to content

Version 1.5.2: Add to Cart button causes 10-15 second delay, causing large scale sales losses


Recommended Posts

Hello everyone,

I've posted here a few times before and usually found some good advice on the issues. Since then, I've begun hiring techs from ODesk.com to help with the site more, but even they are stumped on this one.

 

What's going on is whenever you click the Add to Cart button for a product, it takes about 15 seconds to add the product to the cart, but that's only if you leave it alone (which most US Customers are not patient so this is not likely). If you click any other button or link during this period of time, it will bring up an :"Impossible to add product" error. We are running version 1.5.2.

 

To see the website and the error for yourself, just go to the following website and try to add a product to your cart.

 

www.smallpetfeeders.com

 

This is causing us big losses, and have actually cut our sales down to 10% their normal rate. Some advice would be great.

 

Thank you.

-Dave

SPF

Link to comment
Share on other sites

Dave, have you tried disabling the ajax cart to see if that is the problem. Go to your modules in BO and search for "Cart Block" disable the module. Then make sure Preferences>Products - Re-direction after adding product to cart set to cart summary is set. Hopefully this will buy you some time.

Link to comment
Share on other sites

Was anyone coding the site when this happened or any new modules added? If not have you tried restoring a database backup from before this started?

 

First you should try PhpMyAdmin has an "Optimise Table" facility, have you run that, it would help clear up problems that may develop in your database.

Link to comment
Share on other sites

Ok, do this. FTP into your site and open then /config/defines.inc.php file. There is a line that says PS_DEBUG_PROFILING it should say false. Change it to true. reload, your home page, and then add and item to your cart. At the bottom of the page, it will print out a bunch of stuff. It will look like this http://screencast.com/t/CMy1nG8awCfn Take a screen shot of that area. Then go through the huge list of things and take a screen shot of anything that is in red.

 

Now go back into the file and change the true back to false, come back to the forum and post the screenshots.

 

Don't screenshot the very bottom that says included files, those are going to be in red, just screenshot the things that are in red like this http://screencast.com/t/4grVLwe1Cth

 

Also, who is your host? What plan do you have?

  • Like 2
Link to comment
Share on other sites

One other thing too. Your site appears to be hosted in singapore, but your business is in the states. Geographically that is about as far as you can get from where your site needs to be if that is true.

 

Edit:

Unless you are running other sites too, you host has things set up wrong.

 

Go to this site and click through if you get a security warning,

https://24hrsmail.com/

https://bidders.sg/

https://apmarine.sg/

Link to comment
Share on other sites

Ok, do this. FTP into your site and open then /config/defines.inc.php file. There is a line that says PS_DEBUG_PROFILING it should say false. Change it to true. reload, your home page, and then add and item to your cart. At the bottom of the page, it will print out a bunch of stuff. It will look like this http://screencast.com/t/CMy1nG8awCfn Take a screen shot of that area. Then go through the huge list of things and take a screen shot of anything that is in red.

 

Now go back into the file and change the true back to false, come back to the forum and post the screenshots.

 

Don't screenshot the very bottom that says included files, those are going to be in red, just screenshot the things that are in red like this http://screencast.com/t/4grVLwe1Cth

 

Also, who is your host? What plan do you have?

 

This is what popped up...no list, just an error...

 Declaration of Cart::getOrderShippingCost() should be compatible with that of CartCore::getOrderShippingCost() (Unknown, line 0)

 

 

Edit: Also, this was before I even got a chance to press the Add to Cart button, occurred on load.

When I went to backoffice, it popped up with this error...

[php Strict #2048] Declaration of PayPal::validateOrder() should be compatible with that of PaymentModuleCore::validateOrder() (/home/smallpet/public_html/modules/paypal/paypal.php, line 48)

Edited by buggindave (see edit history)
Link to comment
Share on other sites

What shipping module are you using? Try disabling it and disabling the paypal module too. Then run it again. Also, what version of paypal are you using? Make sure it is the latest version from the addons store (it is free)

Link to comment
Share on other sites

What shipping module are you using? Try disabling it and disabling the paypal module too. Then run it again. Also, what version of paypal are you using? Make sure it is the latest version from the addons store (it is free)

 

I use Fedex. I remembered a test that my tech said he did, and that even when he disabled the Fedex carrier, it still caused an error. It took him deleting it.

 

I just did the same, and sure enough, it speeds up after I uninstall my Fedex Shipping Module, but not when I just disable it. Suggestions?

Link to comment
Share on other sites

  • 3 months later...

I am having this same issue. Every time I click "add to cart" it takes, on average, 5 seconds for it to actually happen. I just tried unhooking the "Cart Block" but that didn't seem to make a difference. I am only using the Connect to UPS module for shipping and have not played with that yet. I am also using the one page checkout.

 

Any other things I should try?

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
×
×
  • Create New...