Zen Cart Logo

Custom filters

Locked

Views: 1,465

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Jun 2009, 1:14 AM
#1
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Custom filters

Hi all, using ZC 1.3.8a and trying to implement additional filters (similar to manufacturer filter), with some success but recently have hit a few hurdles.

first a little background:

site: http://www.qualityhomebrew.com.au/?access=admin

  1. client requires multiple categories that can be cross-referenced, and that are not necessarily heirarchical, as is the case with "sub-categories". e.g. manufacturer A makes product type A & B, but manufacturer B makes product type B & C. client wants to be able to display both manufacturer and product type either independently (as in the manufacturers sidebox), or as a list that is restricted to the context of the currently selected product type.

  2. created copies of manufacturers and manufacturers_info tables, and replicated code throughout admin section to be able to create 2 additional "product categorisations" (product type, and product range). this works correctly so far.

  3. took manufacturers sidebox add-in written by vinaykant (icons for manufacturers) and modified to reflect new tables and fields.

now the problem:

  1. i can see the new category names and icons, but am a little confused how the 'default filter' template is applied. seems to be specified using a variable called $get_option_variable, however i am uncertain if i need to set up multiple variables for each different category, or if i can do it dynamically based on the linke selected.

this probably all seems a little vague, but i would dearly love someone to comment on where the default filter template is called in order to set this variable as it would save me a stack of time to simply make the call/include dynamic!

many thanks in advance
andrejs

5 Jun 2009, 1:44 AM
#2
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Custom filters

PS: I have looked at a few other threads that reference "multiple categories" however they all seem to rely on an heirarchical relationship using subcategories. this is definitely not what I want, and once I get the extra categorisation sorted i will be adding another (so manufacturer, product type, and product range will all be able to cross reference products under a given category either contextually or independently depending on the page template used).

Sorry, just wanted to make sure I didn't get a link back to http://www.zen-cart.com/forum/showthread.php?t=122313 or http://www.zen-cart.com/forum/showthread.php?t=44445&page=2

6 Jun 2009, 6:44 AM
#3
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Custom filters

perhaps someone simply has a better idea for doing what i am trying to achieve? should i rephrase or give better examples?

6 Aug 2010, 12:44 PM
#4
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Custom filters

i know nobody has responded to this thread, which i have to admit makes me quite sad :(

still interested in a solution however, just need some enlightenment.

any ideas?