If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Moving Category Description to bottom of page.

Moving Category Description to bottom of page.

Locked

Started by falero on 22 Oct 2008, 3:06 AM · Views: 3,528

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
22 Oct 2008, 3:06 AM
#1
falero avatar

falero

New Zenner

Join Date:
Oct 2008
Posts:
2
Plugin Contributions:
0

Moving Category Description to bottom of page.

As default, when you create a category and put a description it shows ontop of the page. I would like to move this to the bottom of the page under the products list.

Can anyone help? it's probably something simple.

Thank you.

22 Oct 2008, 4:40 AM
#2
ronpeled avatar

ronpeled

Zen Follower

Join Date:
Sep 2004
Location:
LA, California
Posts:
111
Plugin Contributions:
0

Re: Moving Category Description to bottom of page.

Find this code (line 58):

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description;  ?></div>
<?php } // categories_description ?>

and move it below this code (line 84):

<?php
$show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_CATEGORY);

while (!$show_display_category->EOF) {
  // //  echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

?>

I hope this helps,

Ron Peled

30 Oct 2008, 10:10 PM
#3
goldenhues avatar

goldenhues

New Zenner

Join Date:
Sep 2008
Posts:
38
Plugin Contributions:
0

Re: Moving Category Description to bottom of page.

is there another method this didn't do anything for me

15 Jan 2009, 10:39 PM
#4
traderdog avatar

traderdog

New Zenner

Join Date:
Jan 2009
Posts:
9
Plugin Contributions:
0

Re: Moving Category Description to bottom of page.

This is my first post, so I hope I'm doing it right. Did you find an answer to moving the category description? If not, here's what I did:

Switched the order of these two:

<!-- BOF: Display grid of available sub-categories, if any --> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories --> <?php // categories_description if ($current_categories_description != '') { ?> <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?>

in includes/templates/templates_default/templates/
tpl_index_categories.php

Here's a link - http://www.birthdaygiftsforpets.com/test_store/index.php?main_page=index&cPath=66 to a category page. The images are subcategory links and the text below the images is the category description.

8 Jul 2010, 11:43 PM
#5
loosefast avatar

loosefast

Zen Follower

Join Date:
Jun 2005
Posts:
199
Plugin Contributions:
0

Re: Moving Category Description to bottom of page.

For me this only worked when I made the change on tpl_index_product_list.php

:smile:

8 Jul 2010, 11:53 PM
#6
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Moving Category Description to bottom of page.

The files you need to edit are in:

includes / templates / template_default / templates ...... and then look for: tpl_product_info_display

Find this line:

<!--eof Product details list -->

Copy and paste your product description under it:

<!--bof Product description --> <?php if ($products_description != '') { ?> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description -->