Forums / General Questions / Shopping Cart Crash Due to Size

Shopping Cart Crash Due to Size

Locked

Views: 778

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
23 Oct 2009, 5:25 PM
#1
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Shopping Cart Crash Due to Size

Has anyone experienced a page load problem due to having too many items in the cart at once?

I'm trying to figure out if this is something I can fix or if my host page load times are waaaay to slow(they have been having issues as of late.)

-lindasdd

23 Oct 2009, 5:35 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Shopping Cart Crash Due to Size

In your admin > config > logging > display parse times > set to on/true

Then check parse times for page loading

How many items are your referencing?

Post a link to your site

Zen-Venom Get Bitten

23 Oct 2009, 5:42 PM
#3
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Shopping Cart Crash Due to Size

In one case 36.

l i n d a s d i e t d e l i t e s

23 Oct 2009, 5:55 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Shopping Cart Crash Due to Size

Parse is relatively slow and this could be an issue for an order of 36 items

For your main page On refresh - after initial loading:

Parse Time: 2.386 - Number of Queries: 923 - Query Time: 1.4274600215149

Parse Time: 5.523 - Number of Queries: 923 - Query Time: 2.1484110184326

Parse Time: 2.208 - Number of Queries: 923 - Query Time: 1.2579307396851

Parse Time: 3.787 - Number of Queries: 923 - Query Time: 2.2350553303833

Zen-Venom Get Bitten

23 Oct 2009, 10:35 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Shopping Cart Crash Due to Size

First, your server seems a little sluggish.

Apart from the server being slow in general, there are a few things you can do to help cut down the work Zen Cart does in calculating things for your site:

There are already a lot of calculations being done to display your cart contents. Doing it repeatedly for several products takes time, and that time increases with more products in the cart. In v2.0 of Zen Cart, a lot of work is being done to make these calculations more efficient. In the meantime you will have some increased slowness with larger carts.

To minimize a lot of the slowness on the shopping cart page, turn off the** shopping-cart sidebox** when you're on the shopping-cart page: Admin->Configuration->Layout Settings->Shopping Cart Box Status --- SET TO 2

Shopping Cart Box Status
Shopping Cart Shows when:
0= Always
1= Only when full
2= Only when full but not when viewing the Shopping Cart

Also, in Admin->Configuration->Attribute Settings, there are some settings you can turn off if you're not using them, thus improving speed when attributes are used:

Enable Price Factor
Enable Qty Price Discount
Enable Attribute Images
Enable Text Pricing by word or letter

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Oct 2009, 12:36 AM
#6
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Shopping Cart Crash Due to Size

DrByte,
Excellent suggestions, especially the first one. I only recently added that sidebox and I can see how a double load of the cart on the shopping cart page would create a huge load.

-lindasdd

24 Oct 2009, 6:58 PM
#7
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Shopping Cart Crash Due to Size

lindasdd:

Has anyone experienced a page load problem due to having too many items in the cart at once?
The biggest hog of resources I have found on the shopping cart page is having the shipping estimator displayed. If you have this displayed on the shopping cart page I would suggest changing it to just display the shipping estimator button instead (Admin -> Configuration -> Shipping / Packaging -> Shipping Estimator Display Settings for Shopping Cart = 1)

Regards,
Christian