Forums / General Questions / Move category description under the 20 products per page display

Move category description under the 20 products per page display

Locked

Views: 2,067

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
29 Oct 2010, 2:36 PM
#1
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Move category description under the 20 products per page display

Hi peoples,
I watched around here and on internet for an answer to my question but couldn't find any.

I would like to display the category description after the products display

I found this post but it seems to be different than what I'd like to do.

*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 --> *

Would somebody have a solution?
Thank you.

29 Oct 2010, 2:56 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Move category description under the 20 products per page display

I would like to display the category description after the products display
If you are referencing the product info detail page - - then you found the solution

Re-order that file to suit

Zen-Venom Get Bitten

29 Oct 2010, 3:03 PM
#3
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

Hello Kobra and thank you.
No, what I would like to do is in the category page and not the product page.
The page where we can see the "20 products per page" page.

29 Oct 2010, 3:29 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Move category description under the 20 products per page display

For product listing you can set order in
admin > config > productlisting > 1 for first 2 for next, etc

Zen-Venom Get Bitten

29 Oct 2010, 3:49 PM
#5
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

Thank you Kobra but this advice is to set things in the product listing.

Not to display the product listing before the category description.

29 Oct 2010, 4:51 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Move category description under the 20 products per page display

Not to display the product listing before the category description.
You will have to re-order a copy for your template overrides of the tpl file for this

Zen-Venom Get Bitten

29 Oct 2010, 5:00 PM
#7
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

the "tpl_product_info_display" file?

29 Oct 2010, 5:04 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Move category description under the 20 products per page display

the "tpl_product_info_display" file?
No, you wanted the product listing
tpl_modules_product_listing.php

Zen-Venom Get Bitten

29 Oct 2010, 6:14 PM
#10
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

kobra:

No, you wanted the product listing
tpl_modules_product_listing.php

WOOW, :no: it's quite a long file. I don't understand anything there.
Would somebody know what to put where?

1 Nov 2010, 5:08 AM
#11
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

Thank you Kidsstuff but I am will try to modify the tpl file.
If somebody know how to do, I am open.

2 Nov 2010, 1:48 PM
#12
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

I can't find a solution and I am not able to distinguish the different parts of the file.
Could somebody give me some indication about the parts of the file to move?

Regards.

2 Nov 2010, 3:42 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: Move category description under the 20 products per page display

The category description is handled in
tpl_index_product_list.php

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

Move this section down to just below```php

<?php /** * require the code for listing products */ require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?>
2 Nov 2010, 5:25 PM
#14
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: Move category description under the 20 products per page display

gjh42:

The category description is handled in
tpl_index_product_list.php

<?php // categories_description if ($current_categories_description != '') { ?> <div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?> ``` > Move this section down to just below```php <?php /** * require the code for listing products */ require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?> ```

A BIG THANK to you gjh42, it works. It should help others than me to.

You are great!