osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Categories on mainpage

This is a discussion on Categories on mainpage within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi everybody, I'm new with oscdox and looking for a way to remove the categorie names and images from the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-10-2005, 10:34 PM
New Member
 
Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
frie
Default Categories on mainpage

Hi everybody,
I'm new with oscdox and looking for a way to remove the categorie names and images from the mainpage. I've looked everywere but couldn't find anything.

Can anyone help me with this?

Thanks

Frie
www.brasilgospel.nl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-11-2005, 01:57 AM
New Member
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
FreshIdeas
Default

Hi Frie

What categories names and images are you talking about? On your site the only thing i can see is the categories box from the left column
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-11-2005, 11:39 PM
New Member
 
Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
frie
Default

If you open a categorie on the left column the sub-categories will be showed on the left column but also on the mainpage...
I want to remove the sub-categories on the mainpage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-12-2005, 04:35 AM
New Member
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
FreshIdeas
Default

Go to templates/your template name/content/index_nested.tpl.php

In this file find this line of code: (around line 60)

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

Add // in front of it so it looks like:

// echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

This should solve it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-13-2005, 01:52 PM
New Member
 
Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
frie
Default

Great!!! It worked. Thank you very much!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Want to show categories AND sub categories in index.php!! calle osCommerce 2.2 Modification Help 0 10-27-2004 12:51 PM
mainpage.php bug? titaniumtommy osCMax v1.7 Discussion 4 03-08-2004 03:38 AM
CATEGORIES BOX does not display categories list glk osCMax v1.7 Discussion 2 03-05-2004 11:09 AM
Please, just a little help with the mainpage smalto osCMax v1.7 Discussion 0 02-22-2004 05:49 PM
ERROR_FILE_NOT_WRITEABLE mainpage.php Anonymous osCMax v1.7 General Mods Discussion 1 12-15-2003 02:42 PM


All times are GMT -8. The time now is 12:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax