Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / 386000 Queries Checkout Confirmation Taking Forever (v1.3.7)

386000 Queries Checkout Confirmation Taking Forever (v1.3.7)

Locked

Started by compwhizmm on 1 Nov 2008, 2:28 PM · Views: 1,431

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
1 Nov 2008, 2:28 PM
#1
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #1 by compwhizmm

Hi, I have a customer with 76 items in her cart and she has a simple coupon applied to her order. She goes to the checkout confirmation page, and it says this at the bottom:

Parse Time: 94.404 - Number of Queries: 386926 - Query Time: 81.477367542846

It is taking FOREVER to load. Does anyone know what the problem would be. The coupon is a very simple one. It simply gives a flat discount on her order without any restrictions.

If the coupon isn't applied, it loads fine:
Parse Time: 1.291 - Number of Queries: 4629 - Query Time: 0.99152225732422

Here's the configuration for the coupon:
Coupon Zone Restriction: 0
Coupon Name cwoods110108
Coupon Description
(Customer can see)
Coupon Amount 65.8200
Coupon Minimum Order 0.0000
Free Shipping No Free Shipping
Coupon Code cwoods110108
Uses per Coupon
Uses per Customer 1
Start Date 11/01/2008
End Date 11/05/2009

What can I do to fix this? It's driving me crazy. Not to mention the load rate on my server is through the roof.

Thanks!

1 Nov 2008, 6:08 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #2 by yellow1912

Do these products have lots of attributes?

(And your zen version is?)

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

2 Nov 2008, 12:20 AM
#3
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #3 by compwhizmm

Not a single product has an attribute. I'm running 1.3.7. I still think it has something do with the coupon. When the coupon isn't applied, I don't have this problem. The same thing happens with different coupons as well.

2 Nov 2008, 12:39 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #4 by yellow1912

Say if you limit the number of products on the order to 10, does this happen?

Did you install any module? Which ones?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

2 Nov 2008, 12:52 AM
#5
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #5 by compwhizmm

Ok,

Here's the breakdown with 10 products on checkout confirmation

With Coupon:
Parse Time: 1.858 - Number of Queries: 5177 - Query Time: 1.559697796524

Without Coupon:
Parse Time: 0.296 - Number of Queries: 664 - Query Time: 0.13067283097839

I have a few mods, but none really on the checkout process. The only one I can think of that would affect checkout process files is Checkout w/o account.

THanks!

2 Nov 2008, 1:04 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #6 by Kim

Checkout w/o account.

Just to satisfy our curiosity - can you replace the checkout with the stock one and test again?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Nov 2008, 1:20 AM
#7
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #7 by compwhizmm

I ran it on a stock install. Here's the results

w/o coupon:
Parse Time: 0.632 - Number of Queries: 1318 - Query Time: 0.27100081842041

With coupon
Parse Time: 0.862 - Number of Queries: 1545 - Query Time: 0.38015111477661

I would try and remove those modules, but I can't mess with my site right now. I'm having a bunch of people ordering from a group and I don't want to disrupt anything. I'm thinking about just wiping my store and redoing it from the beginning. I've been having problems with orders showing blank as well. Maybe I've made too many changes to it. But, if anyone has an idea for quick fix of what might be causing it, I'd love to have some advice.

Thanks!

2 Nov 2008, 2:56 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

You said you are running v1.3.7 with the 664 to 5177 jump ...

Did you do your test site with v1.3.7 or with v1.3.8a?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Nov 2008, 2:57 AM
#9
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #9 by compwhizmm

The test site was 1.3.8a.

2 Nov 2008, 3:05 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

Are you familiar with how to do a quick copy of your Live Site database to your Test Database and run the /zc_install and run the Upgrade on the database ...

Or, do a quick install of the exact version of Zen Cart for your test site that you are running now just to see the apples to apples comparisson ...

There is a minor change like you saw in v1.3.8a from no coupon to with coupon ...

I have not been able to reproduce the dramatic change like you are showing in v1.3.7 but I don't have handy a v1.3.7 at the moment in which to test this ...

And rather than torture me ... I thought it would be more fun to torture you on this test ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Nov 2008, 5:02 AM
#11
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #11 by compwhizmm

Ok, I ran it on a stock 1.3.7 with the sample products

w/o coupon:
Parse Time: 1.395 - Number of Queries: 1815 - Query Time: 0.89222941107178

w/ coupon
Parse Time: 17.926 - Number of Queries: 16296 - Query Time: 15.297104630585

It seems there is a bug in 1.3.7

Can I apply the 1.3.8 fix to 1.3.7? Is there a specific change I can make? Thanks for all the help!!!!!!!

2 Nov 2008, 5:36 AM
#12
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Post #12 by compwhizmm

Ok, I replaced the 1.3.7 ot_coupon.php file with the 1.3.8 file.

It gave me a divide by zero error on this line:
$ratioTax = $adjustedTax/$order->info['tax'];

So, I replaced it with this:
$ratioTax = '0';

We don't charge tax anyway.

It seems to work just fine. Do you think I will be able to get away with this without any problems?

Thanks!

2 Nov 2008, 5:53 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #13 by ajeh

You may want to do a compare of a clean v1.3.7 and v1.3.8a plus the Known Bug Fixes at:
http://www.zen-cart.com/forum/showthread.php?t=82619

The USPS shipping module update for May 2008:
http://www.zen-cart.com/forum/showthread.php?t=97461

And the security patch at:
http://www.zen-cart.com/forum/showthread.php?t=108428

and see if it wouldn't be easier to apply the upgrade ...

Otherwise, you can do the compare to see if there are other things that may be affecting the checkout, coupons etc.

Beyond Compare from scootersoftware.com is handy for this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!