Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default 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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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:
    Code:
    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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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.

  6. #6
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default 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

  7. #7
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Shopping Cart Crash Due to Size

    Quote Originally Posted by lindasdd View Post
    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

 

 

Similar Threads

  1. Products With Attributes Crash In Shopping Cart - URL rewrites
    By awiss in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 20 Dec 2011, 06:58 PM
  2. Font Size of Product Name Shopping Cart
    By sharc316 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Oct 2011, 03:56 PM
  3. Shopping Cart Size box not showing!
    By charity04 in forum Basic Configuration
    Replies: 8
    Last Post: 26 Feb 2010, 05:36 PM
  4. Size of shopping cart is HUGE when using IE
    By gfp218 in forum General Questions
    Replies: 11
    Last Post: 6 Oct 2009, 04:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg