Zen Cart Logo
Forums / All Other Contributions/Addons / Better Categories Contrib & ezpages

Better Categories Contrib & ezpages

Views: 51,778

Results 141 to 160 of 189
13 Nov 2007, 12:51 PM
#141
agcolbert avatar

agcolbert

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Better Categories Contrib & ezpages

Hello
I have just installed this contribution and would like to amend it so that all entries in the categories box have an image, unless they are a product with a parent category. Hope this is clear... I think I know what I'm trying to say!!

@ Product
@ Cat1
   @ Sub-Cat1
         Product
@ Product
@ Cat2
   @ Sub-Cat2
       Product
       Product
@ Product
18 Nov 2007, 7:51 PM
#142
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

To get rid of the image for products comment out the line after "default:" in tpl_categories.php like this:

switch ($categoryType) {
case "down":
$pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . 'bc_cat_pointer_down.gif');
break;
case "right":
$pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . 'bc_cat_pointer_right.gif');
break;
default:
// $pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . 'bc_cat_no_sub.gif');
}

Unfortunately, Zen Cart will not allow you to create a product in a category that has other categories (including the top category). So, the rest of what you want to do will not work. :(

18 Nov 2007, 8:11 PM
#143
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Does anyone know if there is a way to make the text line up after the graphic when it spills into another line?

I have attached a picture to show what I want. The first one is what I have. The second one shows what I want.

Thanks!

6 Dec 2007, 2:44 PM
#144
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I searched and could not find the answer to this simple question. How do I get the products to permanently expand on the better categories mod?

http://www.sweetzouzou.com/catalog/

I installed another mod "expanded category list" and it looks fine, but I like the presentation of better categories.

Thx Sweet

18 Feb 2008, 8:41 PM
#145
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Is there any easy way to edit bettercategories so that if you click on the category a second time it will close back up?

Thanks

19 Mar 2008, 9:21 AM
#146
static avatar

static

New Zenner

Join Date:
Feb 2008
Posts:
9
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

ok this is probably a stupid question.

i get the roll over on everything i want in firefox but for some reason the roll over on the actual catagories list isnt working in IE6

any help would be appreciated

heres the link so you can see what i mean http://ezytrader.com

17 Jul 2008, 5:34 PM
#147
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

where did the better categories download link go? I cannot find it anywere in the downloads section any more!??

11 Feb 2009, 10:28 PM
#149
worgazza avatar

worgazza

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

hoping this is an easy question for some of you old hands at this.

I have bettercategories 1.3.5 installed and it is working GREAT - much cleaner and easy to modify.

My question is this - can I add an image to Display above a specific category?
and can I have 2 different images display above different categories
ie - image A above cpath=3, and image B above cpath=12.

I'm a total rookie at adding code but have successfully made a few mods...

Any help would be greatly appreciated

12 Jun 2009, 10:01 PM
#150
jenkinskc avatar

jenkinskc

New Zenner

Join Date:
Jun 2009
Posts:
1
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

I am trying to change the names of the catergories under "information" sidebox and cannot figure out how to do it. I need to rename a few and delete a few others. Please help!

10 Sep 2009, 2:47 PM
#151
damiantaylor avatar

damiantaylor

Zen Follower

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

Re: Better Categories Contrib & ezpages

Hi all!
Can anybody help me with a php question? I'm new to all this but am learning (I think :smile:)

Using Better Categories, I've highlit which category was selected by the user by changing the colour of the text in the style sheet classes SPAN.category-subs-parent and SPAN.category-subs-selected.

However, the above spans don't effect special categories such as 'New Products' and 'All Products', etc so I'm trying to add that functionality.
In tpl_categories.php you can tell which category or subcategory was selected by the user with the code:
if ($box_categories_array[$i]['current'])

Is there an equivalent method to tell which special category was selected as I'd really like to change the colour of the text when the user hits the All Producs category.

Thanks!

10 Sep 2009, 3:18 PM
#152
gjh42 avatar

gjh42

Black Belt

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

Re: Better Categories Contrib & ezpages

You can use a test for the current page name:

$current_all = '';
if ($current_page_base == 'products_all'){
  $current_all = '-selected';
}

Then append the value of $current_all to the classname:```php
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";
}

```php
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
      $current_all = '';
      if ($current_page_base == 'products_all'){
        $current_all = '-selected';
      }
      $content .= '<a class="category-links' . $current_all . '" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
    }
```Repeat for other links with appropriate adjustments, then style

a.category-links-selected {}

as desired in your stylesheet.
10 Sep 2009, 3:30 PM
#153
gjh42 avatar

gjh42

Black Belt

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

Re: Better Categories Contrib & ezpages

The above can be done in condensed fashion by just changing
class="category-links"
to
class="category-links' . ($current_page_base == 'products_all'? '-selected': '') . '"

    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
      $content .= '<a class="category-links' . ($current_page_base == 'products_all'? '-selected': '') . '" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
    }
10 Sep 2009, 4:38 PM
#154
damiantaylor avatar

damiantaylor

Zen Follower

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

Re: Better Categories Contrib & ezpages

Perfect!
Thanks guys :bigups:

14 Sep 2009, 6:14 AM
#155
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

How do i align the category pointer images and text links vertically?

Im using bettercategoriesEZinfo & Zencart 1.38.
http://www.coolibahteahouse.com.au/index.php

Thanks.

9 Oct 2009, 7:30 PM
#156
addler avatar

addler

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Have searched the FAQs and read through the forums...

We have a fresh install of v1.3.8a. Is Better Categories compatible with this version?

The text file from the Better Categories version downloaded states:

2006-09-18 Updated for Zen-cart v1.3.5 (c) 2006, Gilby

9 Oct 2009, 9:52 PM
#157
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Addler:

Have searched the FAQs and read through the forums...

We have a fresh install of v1.3.8a. Is Better Categories compatible with this version?

The text file from the Better Categories version downloaded states:

2006-09-18 Updated for Zen-cart v1.3.5 (c) 2006, Gilby

Yes it is :smile:
No changes were needed for any version from 1.3.5 to 1.3.8a

25 Jan 2010, 4:28 PM
#158
ecotopia avatar

ecotopia

New Zenner

Join Date:
Oct 2009
Posts:
19
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Hi I am not sure if this is anything to do with BetterCategories but on http://www.noahsark.co.uk the category Winter Sale is in red and no other category is...... Now I know how to change the colour of this and I am up on where and how the style sheet it changes for the category colours.

I don't however know why specifically that category is in red? It is category ID 1. My guess is somehow I can specify a particular category as the featured one or something?

Please help, this is very annoying. All I want to do is highlight some other sale categories.

Thanks in advance.

25 Jan 2010, 10:41 PM
#159
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

ecotopia:

Hi I am not sure if this is anything to do with BetterCategories but on http://www.noahsark.co.uk the category Winter Sale is in red and no other category is...... Now I know how to change the colour of this and I am up on where and how the style sheet it changes for the category colours.

I don't however know why specifically that category is in red? It is category ID 1. My guess is somehow I can specify a particular category as the featured one or something?

Please help, this is very annoying. All I want to do is highlight some other sale categories.

Thanks in advance.

For that line you are using a ```php
<a class="category-bold-red"


wheras the others are using ```html
<a class="category-subs"

Search your code and see where "category-bold-red" is being inserted

26 Jan 2010, 11:22 AM
#160
ecotopia avatar

ecotopia

New Zenner

Join Date:
Oct 2009
Posts:
19
Plugin Contributions:
0

Re: Better Categories Contrib & ezpages

Thanks! Worked.