If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Changing the behavior of the cart page & cart sidebox

Changing the behavior of the cart page & cart sidebox

Locked

Started by bodyjewelrystores on 29 Jan 2009, 3:01 PM · Views: 1,727

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
29 Jan 2009, 3:01 PM
#1
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #1 by bodyjewelrystores

I'd like to know if it is possible to do the following:

  1. When "Display Cart After Adding Product" is turned OFF (in Configuration -> My Store), the customer doesn't get any kind of visual verficiation that the product has been added (the shopping cart sidebox is also turned off). Is there a way to make it display a small notification when a product is added? Perhaps through the message stack?
  2. About the shopping cart sidebox itself: Instead of displaying all the products with quantities, is there a way to change it to display only the total price - but in an optimized way that drastically reduces the number of db queries, compared to the normal behavior?

The story is - our site is on a very slow server, and we have thousands of linked products with attribute pricing, etc. This causes the shopping cart page and the checkout process to be VERY slow for customers who make very large orders... we had someone put 190 different items in their cart - when I tested this, the Shopping Cart page had a parse time of 70 seconds and 39,000 queries(!). The shopping cart sidebox was causing severe slowdowns, too.

So, I had to turn the sidebox off, as well as "Displays Cart After Adding Product", just to make the ordering process bearable for customers with very large orders. I'm working on optimizing this (testing the new Query Cache add-on by data-diggers.com), and maybe we will need to move to a faster server.... but for now I'd like to know if it's possible to change the default behavior as above, to make it more friendly but still fast, until we fix the underlying problem.

Many thanks in advance for any help.

29 Jan 2009, 3:12 PM
#2
Kim avatar

Kim

Obaa-san

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

Post #2 by Kim

The story is - our site is on a very slow server, and we have thousands of linked products with attribute pricing, etc. This causes the shopping cart page and the checkout process to be VERY slow

We are aware that the program is inefficient with the querires in that area at this time, but wouldn't a faster server be a better choice?

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.

29 Jan 2009, 3:34 PM
#3
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #3 by bodyjewelrystores

Kim:

We are aware that the program is inefficient with the querires in that area at this time, but wouldn't a faster server be a better choice?

True - but a good semi-dedicated server would be very costly, and finding a shared server that is both reliable and fast is not very easy... so that will take us some time and money. But until that happens, I need a more immediate solution for our complaining customers, to avoid losing them... and the abovementioned 2 things would definitely help, if I could implement them.

I just ran across the "Cart Summary Sidebox" module, by the Zen Cart team - do you happen to know if it causes a drop in queries, compared to the default cart sidebox?

Thanks!

30 Jan 2009, 12:31 AM
#4
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #4 by bodyjewelrystores

Okay, I've done some testing myself. It appears that the Cart Summary Sidebox reduces the query count by half, compared to the normal shopping cart sidebox, but when the cart has 100 different items with attributes, this still means an additional 3,000 queries(!) for each page browsed.

So could anyone help me with displaying a message on the next page, when an item has been added to cart? (since "Display Cart After Adding Product" is turned off, and the shopping cart sidebox is also off).

Would really appreciate any insight - thanks.

30 Jan 2009, 12:39 AM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Post #5 by tony_sar

you can install this module by data digger
http://www.data-diggers.com/query-cache

it should reduce your query by up to 80%.

30 Jan 2009, 12:51 AM
#6
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #6 by bodyjewelrystores

tony_sar:

you can install this module by data digger
http://www.data-diggers.com/query-cache

it should reduce your query by up to 80%.

Thanks - I've already found this and tried it out, but I'm getting multiple php warnings with it... I posted my problem on his forum, but for now I don't want to put it up on the live store yet.

Looks very promising, though :) But in the meantime, until it's resolved, I'm simply looking for a way to show a message after an item has been added to the cart.

30 Jan 2009, 1:21 AM
#7
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Post #7 by tony_sar

i have that module installed on test shop and live shop and had no issue with it .. chances are if you have any additional module that might have modified some files that this module uses and getting the error that has nothing to do with this module .

30 Jan 2009, 1:51 AM
#8
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #8 by bodyjewelrystores

Maybe, I still have to troubleshoot it further, but the thing is I am using Zen Cart 1.3.0.1 (Query Cache does have files for 1.3.0 but not 1.3.0.1).... perhaps I could just suppress the display of these warnings, but I haven't yet tested it enough to make sure that nothing else goes wrong.

Like I said though, it looks very promising, hope I can make it work somehow.

So... in the meantime... anyone has any idea about displaying a message after an item has been added to the cart?

30 Jan 2009, 9:39 AM
#9
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Post #9 by tony_sar

And is there any reason that you don't want to upgrade to version 1.38?

30 Jan 2009, 6:33 PM
#10
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #10 by bodyjewelrystores

Yes - many custom modifications that I made a year or two ago to several core files, without overrides (before I knew any better). i'll get to it eventually, for now I'm thinking of waiting for 2.0 before upgrading.

31 Jan 2009, 8:49 PM
#11
ajeh avatar

ajeh

Oba-san

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

Post #11 by ajeh

Backup your database and site to be safe ... :smile:

Using a Test database and Test Directory, install Zen Cart v1.3.8 with demo data etc. so you have a nice play room ...

Next, compare the database structure for v1.3.8 and what you have for Zen Cart 1.3.0.1 and see how many indexes you might be missing ... and add in these missing index ...

Indexes make a world of differences ...

There are so many things done between Zen Cart 1.3.0.1 and Zen Cart v1.3.8 to speed things up, despite the queries it isn't funny ...

Also, configuring Zen Cart to not run features you do not use that you may not "see" but are being run is another way to speed things up ...

You might even try loading a copy of your database to your test data base and run the Upgrader on it and see how your site works in v1.3.8 despite the fact that you would be missing your custom code, just for giggles and grins ...

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!

3 Feb 2009, 12:21 AM
#12
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Post #12 by bodyjewelrystores

Hi Ajeh,

Thanks for your detailed reply..

I checked the difference in the database structure between my version and v1.3.8a - a few were missing, I added them but unfortunately there was very little improvement. However, turning off unneeded features helped a lot - displaying weights in the shopping cart for instance, and many other options which I'm still finding and tweaking.

I also managed to get Data Digger's excellent Query Cache add-on to work (with his kind help) - so with these 2 things my speed problem pretty much went out the window.... For a cart with 100 different items, 1st checkout step was 30,393 queries / 71 seconds - now it's 844 queries / 6 seconds :)

....But, if possible - I'd still like to know if there is a way to show the customer a message after an item has been added to the cart, as I asked above... I'd like to keep the site as fast as it is now, so the cart sidebox (and the "add to cart" button showing you the cart after each add) is still off. Showing a simple message at the top of the next page would be more user friendly.

Thanks!

3 Feb 2009, 6:04 PM
#13
ajeh avatar

ajeh

Oba-san

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

Post #13 by ajeh

That is already built in to the current version of Zen Cart ...

You might download v1.3.8a and install it to a test directory and test database and see how the features work for that ...

You could probably track down the code for the message and add that feature to your old version ...

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!