Forums / Basic Configuration / category info for specific category only

category info for specific category only

Locked

Views: 1,609

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Apr 2008, 10:54 PM
#1
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

category info for specific category only

Is it possible to display specific category information subcategories for a specific category on in zen-cart? And if so how would I go about doing this?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

7 Apr 2008, 12:07 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: category info for specific category only

Do you mean having information pages that are embedded in the normal category structure?
You could make a subcategory and then edit it (bottom of page) to
Restrict to Product Type [Document-General].
This would make it contain non-purchase document pages.

7 Apr 2008, 12:08 AM
#3
kuroi avatar

kuroi

Totally Zenned

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

Re: category info for specific category only

ctcentralinfo:

Is it possible to display specific category information subcategories for a specific category on in zen-cart? And if so how would I go about doing this?
Sorry but I've read "specific category information subcategories for a specific category" half a dozen times and still have no idea what it means. Could you clarify?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

7 Apr 2008, 12:54 AM
#4
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: category info for specific category only

Something similar to https://www.walmart.com

for their apparel section you get:

http://www.walmart.com/apparel?fromPageCatId=14503

for baby category you get:

http://www.walmart.com/baby?fromPageCatId=14503

for the book section you get:

http://www.walmart.com/books?fromPageCatId=14503

get my drift?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

11 May 2008, 12:16 AM
#6
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: category info for specific category only

If I want a specific message to be displayed only on specific categories I do the following.

I modify the tpl_product_info_display.php by adding the following code wherever I want my message displayed:

<?php if ($cPath == 1) { echo TEXT_TO_BE_DISPLAYED; } ?>

then I modify my english.php to specify the message i.e.

  • define('TEXT_TO_BE_DISPLAYED', 'Zen Cart is so cool.');*

or even easier, you can just add the code below to your tpl_product_info_display.php:

*<?php if ($cPath == 1) { ?>
Your text goes here

<?php } ?>*

this way you don't need to bother with your english.php. I'd recommend the first example.

By the way, in case you don't know how to get the category id for the one you want to modify, either look at the url, it should look like this: ....index.php?main_page=product_info&cPath=1&products_id=27 or look at the category id on your Categories / Products page in your Admin.

If you have lots of different messages for different categories it will be a bunch of coding like gjh42 says...

Hope this helps