Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

"Category" from search?

Locked
This thread is locked. New replies are disabled.
18 Nov 2010, 5:58 AM
#1
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Post #1 by jace

hoping this is possible... it would save many hours of work...

My Zen-Cart installation is for a health food wholesaler. I've got all products on the website, and I'm needing to link 292 of them into a new category showing all organic products.

Instead of spending time linking them all, I'm hoping it's possible, that when the "Organic Products" link is clicked in the Category box, instead of going to a category of products, it would show search results with everything that has the word "organic" in its title.

So pretty much, the URL in the category box would be changed, so instead of going to a category, it goes to the URL that is actually the result of a search for the word "organic".

Please tell me this is possible, and how this is done...?
:lookaroun

18 Nov 2010, 10:21 PM
#2
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Post #2 by jace

any help please... trying to avoid hard-coding this one if possible...

19 Nov 2010, 2:02 AM
#3
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Post #3 by jace

nevermind then... i've hard-coded it in tpl_categories.php

works perfectly tho.

19 Nov 2010, 3:28 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Post #4 by gjh42

I don't think there is any way of getting a specific link like that in the categories box without hard-coding it to some degree. I suppose you could code some Jquery function that would insert the link without touching tpl_categories.php, but it would still be hard-coded.