Forums / Setting Up Categories, Products, Attributes / Item with too many option choices, takes forever to load

Item with too many option choices, takes forever to load

Started by dapperdevil on 16 Jan 2010, 6:48 PM · Views: 1,952

Results 1 to 8 of 8
16 Jan 2010, 6:48 PM
#1
dapperdevil avatar

dapperdevil

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Item with too many option choices, takes forever to load

I'm wondering if someone could suggest an alternative way to set up what I'm trying to do here. All items in my cart load reasonably fast, except for this one.

I want to sell as one item, a pack of 16 total widgets, each drawn from a pool of 48 different possible widgets. So customer A could order 10 type-5 widgets plus 6 type-33 widgets, while customer B could order one each of type-1 through type-16, etc.

I have it set up so that there are 16 different product attributes, and each attribute has 48 options. That's apparently too many options for one product, because the page takes 20-35 seconds to load. Which is of course unacceptably slow.

Link to item in question: (be patient, heh)
http://goo.gl/0G6X

So does anybody have an idea of how else I could set this up so that I get the desired functionality, with reasonable load time?

I'm using ZenCart version 1.3.8a, google analytics add-on, hosted by GoDaddy.

16 Jan 2010, 8:16 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,129
Plugin Contributions:
56

Re: Item with too many option choices, takes forever to load

I had the same question. See here.

16 Jan 2010, 8:51 PM
#3
kobra avatar

kobra

Black Belt

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

Re: Item with too many option choices, takes forever to load

I'm using ZenCart version 1.3.8a, google analytics add-on, hosted by GoDaddy.
Search for your host here and make your own assesment

Zen-Venom Get Bitten

17 Jan 2010, 12:42 AM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Item with too many option choices, takes forever to load

@dapperdevil - well, the first thing you can do is correctly optimise your images. Your background image is 35kb, your devil logo is 53kb, the text "Dapper Devil" is 23kb.

Your other images can also be made a little smaller in dimensions - you could then set the bronze/blue side-by-side giving the added bonus of less scrolling.

Do that and then see how long it takes to load.

You could use Ajax to show the relevant attributes after selection - take a look at http://www.pizzagogo.co.uk/store/index.php?main_page=product_info&cPath=7_210&products_id=632 ... select a size, then from the "Base" choose Stuffed crust

So you could have them choose the token name and then the colour option would display. Notice that the crust option appears a LOT quicker than the long list of toppings.

Can't say how long the process would take for the customer - depends on the server etc.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

17 Jan 2010, 12:47 AM
#5
dapperdevil avatar

dapperdevil

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: Item with too many option choices, takes forever to load

lat9:

I had the same question. See here.

Wow, 4000 DB hits? Yeah, that'd make a page load slow!

So, I have 26 pages of little squares to click in Attribute Controller... and it resets to page 1 every time you click one square. That's gonna take a while. I'm sure a short SQL statement would work instead, but I don't feel familiar enough with the database to write one.

Off to do some clicking! Thanks for the help.

17 Jan 2010, 12:50 AM
#6
dapperdevil avatar

dapperdevil

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: Item with too many option choices, takes forever to load

Ryk, we posted at the same time, so I didn't see your reply.

Thanks, I'll try working on image size if the attribute discount thing doesn't work out. But again, all my items load pretty fast except for this one, with the same images more or less. The only variable really is the number of attributes. So I suspect it's the DB problem, not GoDaddy or images.

I also know nothing of Ajax, so implementing your other suggestion is kind of over my head. :)

17 Jan 2010, 10:37 AM
#7
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Item with too many option choices, takes forever to load

DapperDevil:

I also know nothing of Ajax, so implementing your other suggestion is kind of over my head. :)

It's over mine too, but we have programmers in our team who do this stuff. You could also post in the Commercial Help Wanted section.

Sometimes it is cheaper to pay to have work done than it is to spend hours trying to figure it out. On the other hand, if you can learn stuff like that, it's a great skill to have in your portfolio. Depends on where your priorities lie.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

17 Jan 2010, 5:17 PM
#8
dapperdevil avatar

dapperdevil

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: Item with too many option choices, takes forever to load

Ryk:

Sometimes it is cheaper to pay to have work done than it is to spend hours trying to figure it out. On the other hand, if you can learn stuff like that, it's a great skill to have in your portfolio. Depends on where your priorities lie.

That's always a tough decision for me, because I can always see strong benefits on both sides of the issue.

In this case, I'm happy to report that changing the "Apply Discounts Used by Product Special/Sale" attribute flag to NO for all option choices on that item has made the page load just as fast as all the other items in my cart. So, problem resolved!

That was lat9's suggestion in the 2nd post of this thread, so thanks especially to him, but I want to thank all of you folks who posted trying to help me out. It's really appreciated!