Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display 20 categories with button to view all...

Display 20 categories with button to view all...

Locked

Views: 1,566

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
3 Apr 2010, 2:25 PM
#1
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Display 20 categories with button to view all...

Does anyone know I would go about making it where the Categories sidebox only displayed 20 categories, but had a link to click to display the rest of the categories?:blink:

3 Apr 2010, 2:36 PM
#2
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

You could make the rest of the categories subcategories of category 20, perhaps?

3 Apr 2010, 2:40 PM
#3
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

I'm doing it for a client... they are adamant that they didn't want to do it that way... I already suggested that one.

3 Apr 2010, 2:44 PM
#4
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

Aha, I figured my solution seemed too obvious :blush:

Though I don't see that doing it any other way would be any different to be honest...

3 Apr 2010, 2:46 PM
#5
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

Yeah... I agree... but you know how some people can be about things...

3 Apr 2010, 2:50 PM
#6
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

Oh, I know, sneak in a tiny fullstop on it's own as Category 20 and don't tell them, then add an EZ Page that links to the subcategories... you never know, they might fall for it... :shocking: :shocking:

:P :P :P

3 Apr 2010, 2:55 PM
#7
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

That was something I was thinking about... I'm not sure how to restrict the Categories sidebox to 20 categories though... I'm pretty sure he won't go for it anyway.

3 Apr 2010, 3:04 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display 20 categories with button to view all...

Probably tpl_index_categories.php would be the place to start. You would need a counter to tell how many categories had been output, and stop at 20. That is the easy part - next you would need a link/switch that would set a variable to disable the cutoff when clicked. It would need to go through the URL, so you would probably need a form submit...

There is a mod for users to choose how many products to display per page; that code could guide you.

3 Apr 2010, 3:10 PM
#9
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

LittleOleMeDesigns:

the Categories sidebox only displayed 20 categories, but had a link to click to display the rest of the categories?:blink:
I'm not making an argument here by any means, but I've been thinking about this now ever since you first replied to me. Unless you're explaining it badly what they want, the last category could simply be titled 'click here for more categories'

Sorry, but I just don't get what it is they're wanting really :no:

I'd say your best recourse would be to simply tell them it's not possible - that's my twopence on it for what it's worth

3 Apr 2010, 3:13 PM
#10
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

From the way I'm understanding it... something like a javascript reveal kind of thing... only 20 categories shown, but then you click a link and the categories sidebox expands to show the remaining categories is what he's wanting.

3 Apr 2010, 3:15 PM
#11
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

See this is where I am totally lost, what you and I suggested effectively does that.

Oh well, good luck with them, I think you'll need it :wink:

3 Apr 2010, 3:19 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display 20 categories with button to view all...

Oops sorry, I missed the "sidebox" part :)

If the sidebox only shows those 20 categories by default, and you have to click something every time you want to see the rest, that could get tiresome for someone interested in the others. I think the more useful to the users (maybe not what the client thinks he wants) would be a customer setting for full or abbreviated sidebox, persistent until they change the setting.

3 Apr 2010, 3:47 PM
#13
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

Yeah... I've tried explaining that to him that it would be very annoying and would probably impact his sales to have some of his categories hidden from customers... but not getting through to him.

He keeps referring to mobi-pocket.com.. they have an all categories link that does the EZ-Page concept.

Any pointers on how to achieve that concept?

3 Apr 2010, 3:53 PM
#14
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

You could simply turn off the left and right columns and use ... seems an arse about way of doing things though just for one request.....

Wait..... mobipocket.com you mean, not mobi-pocket.com LOL

gjh42's category dressing could probably do that... over to you Glenn :wink:

3 Apr 2010, 4:13 PM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Display 20 categories with button to view all...

As with all things coding related, it is a question of "your" time and the "client's" money. :smile:

What is being proposed could be done but would take a fair amount of Javascript coding. If you tell them it would cost xxx hundred dollars to do, would they still be interested? Asking those kind of question is when I usually find out how serious the Client is about having something done.