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?
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?
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.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Something similar to 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?
Anything is possible, but that level of detail is going to require a bunch of custom coding.
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