Page 13 of 227 FirstFirst ... 311121314152363113 ... LastLast
Results 121 to 130 of 2267
  1. #121
    Join Date
    Sep 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Please accept my huge thank you! You saved me hours of searching! I am learning, slowly!!
    I have a few tweaks to do and I think I am set to have products added!
    Off to search for instructions on those! :)

  2. #122
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: Categories Dressing

    This may have been asked and answered, if so, I do apologize, but I've gone thru the whole thread and can't find the answer to my problem.

    I'm having trouble positioning my Non-Linked Headings.

    I want a Non-Linked Heading to be the first thing in my category menu. My first top category is cpath 4. When I put cpath 4 in the code, the heading is showing up BELOW my top category instead of above it.

    You can see what it's doing here: www.nybwholesale.com
    The Xelement Men's Boots should be under the Heading Motorcycle Boots.

    What am I doing wrong?

    Thanks!
    I'll finish that project tomorrow, I've made enough mistakes today!

  3. #123
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Very strange. I don't see a cause for this. I do notice that Men's Boots is not the first category; category 15, which has no name, comes first. It shows as a sliver of space above Men's Boots.

    Can you paste the section of tpl_categories.php for say 10 lines above and below your header code? Use [php] and [/php] tags to make it easier to read.

  4. #124
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    Very strange. I don't see a cause for this. I do notice that Men's Boots is not the first category; category 15, which has no name, comes first. It shows as a sliver of space above Men's Boots.

    Can you paste the section of tpl_categories.php for say 10 lines above and below your header code? Use [php] and [/php] tags to make it easier to read.

    Thanks for checking it Glenn!

    No Men's Boots is not the first category. It was originally a subcategory I moved up. Would that make a difference? The #1 category was the original top category Motorcycle Biker Boots. It's still there, just turned off.

    The Boots are categories 4 (Men's) & 5 (Ladies).
    I just installed this mod on another site and it did the same thing, but luckily on it, there was a category above it so it still worked.

    Here is my code lines 80 - 129:

    PHP Code:
          if (SHOW_COUNTS == 'true') {
            if ((
    CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
              
    $content .= CATEGORIES_COUNT_PREFIX $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
            }
          }

          
    $content .= $disp_block "\n";

          
    // categories dressing - add subtext below a cat
          
    switch ($current_path) {
          case 
    '23'//replace number with your desired cPath
            
    $content .= '<span class="catBoxSubtext">Subtext for cat 23 escape apostrophe\'s</span>' $disp_block "\n"
          break;
          } 
    // subtext
        
    }
        

          
    // categories dressing - add (divider and) heading above a cat
          
    $disp_block_head '';
          
    //$disp_block_head = '<br />';  // for heading not block uncomment this line
          
    switch (str_replace("cPath=","",$box_categories_array[$i]['path'])) {
          case 
    '4'//replace number with your desired cPath
            //$content .= '<hr class="catBoxDivider" />' . "\n";  // to add divider uncomment this line
            
    $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') . '</span>':'Motorcycle Boots</span>' $disp_block_head) . "\n"
          break;
          } 
          
                
    // categories dressing - add (divider and) heading above a cat
          
    $disp_block_head '';
          
    //$disp_block_head = '<br />';  // for heading not block uncomment this line
          
    switch (str_replace("cPath=","",$box_categories_array[$i]['path'])) {
          case 
    '5'//replace number with your desired cPath
            //$content .= '<hr class="catBoxDivider" />' . "\n";  // to add divider uncomment this line
            
    $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') . '</span>':'Motorcycle Gear</span>' $disp_block_head) . "\n"
          break;
          }  
      }

      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_SPECIALS == 'true') {
          
    //$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-specials.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-specials.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
          
    $show_this $db->Execute("select s.products_id from " TABLE_SPECIALS " s where s.status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a>' $disp_block "\n";
          }
        } 
    The #15 and 16 categories you saw with no names, I had just added and my ISP timed out before they were saved. LOL Sorry about that.
    I'll finish that project tomorrow, I've made enough mistakes today!

  5. #125
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    You have duplicated the whole switch block; what you should have duplicated is just the case block:
    PHP Code:

          
    // categories dressing - add (divider and) heading above a cat
          
    $disp_block_head '';
          
    //$disp_block_head = '<br />';  // for heading not block uncomment this line
          
    switch (str_replace("cPath=","",$box_categories_array[$i]['path'])) {
          case 
    '4'//replace number with your desired cPath
            //$content .= '<hr class="catBoxDivider" />' . "\n";  // to add divider uncomment this line
            
    $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') . '</span>':'Motorcycle Boots</span>' $disp_block_head) . "\n"
          break;

          case 
    '5'//replace number with your desired cPath
            //$content .= '<hr class="catBoxDivider" />' . "\n";  // to add divider uncomment this line
            
    $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead' $current_path '.gif') . '</span>':'Motorcycle Gear</span>' $disp_block_head) . "\n"
          break;
          } 
    I'm not sure offhand how that would cause a problem, but it's definitely not the right way to do it. Try substituting the code above for yours and see what happens.

    The positioning problem is caused by the location where you put your duplicates. They come after the category name in the code, so they will display after it.

    You need to put that code block back up where it originally was.
    Last edited by gjh42; 19 Nov 2007 at 06:32 AM.

  6. #126
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hey,

    Where do I comment out the "Link Heading"? I want it to go away.

    Thanks,

    JP

  7. #127
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Around line 130 in tpl_categories.php:
    PHP Code:
        if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    /*here*/  $content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES 'cathead-all.gif') . '</span>':'Link Heading</span>' $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
          
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' "\n";
        } 

  8. #128
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thanks!

    JP

  9. #129
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Can Category Dressing create flyout menus.
    Similar to left menu at http://fotonapakymppi.fi/tuotteet.php .

    marksu

  10. #130
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    No, flyout menus are a completely different kind of code. They would probably modify the same tpl_categories.php file, though, so it would be difficult to use them together.

    There are a few flyout-type mods in Downloads. Look them over and see which one suits you best.

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR