Forums / General Questions / Category Description in tpl_main_page.php

Category Description in tpl_main_page.php

Views: 458

Results 1 to 3 of 3
15 Jan 2013, 6:49 PM
#1
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Category Description in tpl_main_page.php

Strange request I know but can anyone advise how I can call the current category description in the tpl_main_page.php file?

Need it outside of the normal category page divs and to sit below the header and above the left column.

I tried using the code from the category files which looks like its defines in main template vars but I guess that's happily below the code I'm playing with??

Phil Rogers
A problem shared is a problem solved.

15 Jan 2013, 7:37 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Description in tpl_main_page.php

You can get it with the zen_get_category_description($category_id, $fn_language_id) ...

just pass the categories_id and language_id for this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!