Zen Cart Logo
Forums / General Questions / Categories side box revamp?

Categories side box revamp?

Locked

Views: 693

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Mar 2008, 10:26 PM
#1
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Categories side box revamp?

Hey there.
Ihave been looking on the forum but can not find it and will continue to look.
I was wondering if there was a way to move the "specials", "new products" and "featured products" from the bottom of the categories box to the top? I'm sure there is but what file would it be to edit?
Am affraid of mocing ssomething I shouldn't lol
Thanks so much.

13 Mar 2008, 7:25 PM
#2
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Categories side box revamp?

Just wanted to bump this up:frusty:

13 Mar 2008, 7:48 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Categories side box revamp?

This would be a relatively simple case of moving code in /includes/templates/your_template/sideboxes/tpl_categories.php.

Find this:```php
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}
...

if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
  $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
}

}

  $content .= '</div>';
?>
at the bottom) to just after the opening div line:```php
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";

You will then want to move the```php
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}


Just be careful of what you are doing, and watch the opening and closing { } to keep them balanced.