Zen Cart Logo
Forums / Basic Configuration / Linking Product Categories to Ez-pages

Linking Product Categories to Ez-pages

Locked

Views: 2,939

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Jan 2008, 9:07 AM
#1
njlp avatar

njlp

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Linking Product Categories to Ez-pages

Hello everyone,

I'm trying to figure out how to link product categories (left column) directly to ez-pages instead of dynamically created. Has anyone been able to achieve this.

Thank you.

22 Jan 2008, 9:22 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Linking Product Categories to Ez-pages

Why not re-name your EZ-Pages sidebox header "Categories" and turn the categories box off?

4 Mar 2008, 3:24 AM
#3
bbemis avatar

bbemis

Zen Follower

Join Date:
Feb 2006
Posts:
163
Plugin Contributions:
0

Re: Linking Product Categories to Ez-pages

I actually need to do this as well. I can't just turn the categories box off because I also have products that do need dynamic pages. Is there a way to add a link to the category box and then tell it to go to an ez page? If so, how might I go about doing that?

11 Mar 2008, 7:32 PM
#4
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Linking Product Categories to Ez-pages

Do you mean that you want to be able to have links to ezpages within the categories sidebox instead of a seperate sidebox?

11 Mar 2008, 9:26 PM
#5
bbemis avatar

bbemis

Zen Follower

Join Date:
Feb 2006
Posts:
163
Plugin Contributions:
0

Re: Linking Product Categories to Ez-pages

Yes....that's exactly what I mean...

11 Mar 2008, 9:40 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Linking Product Categories to Ez-pages

If it will work to have the ez-page links at the top or bottom of the list, you can disable the heading of one box with for example
#categoriesHeading {display: none;}
and set top & bottom margins and borders for those boxes to make them run together.

11 Mar 2008, 10:48 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Linking Product Categories to Ez-pages

Nice job! I haven't looked at it yet, but more flexibility is a good thing.

One comment: the description says
"This mod will replace your existing modules/sideboxes/categories.php, and templates/template_default/sideboxes/tpl_categories.php files. The original files will be renamed with .old"

Does this really mean that the original files are replaced in their original locations? The right way to do something like this (except in the few places where the override system does not operate) is to have the new versions in an override folder structure with a placeholder template name like /your_template/. This will require the user to edit the folder name before uploading, but is the correct method for adding custom functionality.

So you would have
/includes/modules/sideboxes/your_template/categories.php, and /includes/templates/your_template/sideboxes/tpl_categories.php

No need to save .old copies of the originals, and the mod files are safe from being overwritten in upgrades.

12 Mar 2008, 8:29 AM
#9
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Linking Product Categories to Ez-pages

I've changed the mod to allow for the overrides system. It was done in a bit of a rush yesterday and i omitted to follow the file structures.

Steve