Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Main Categories" contribution help


Guest

Recommended Posts

I've searched the forums for hours and cannot find a fix to my problem. I installed the contribution Main Categories. However, I am unable to line up the images with the links. Which you can view here, My Webpage. This is a live store.

 

Any ideas on how to line them up. Do I need to remove the subcategory call as I don't have any sub categories, if so how do I do that. Also is it possible to add a background image or color to just the categories box and how would you do that?

 

Thanks in advance for your help

Edited by vizibrite
Link to comment
Share on other sites

try the following... find this text on main_categories.php:

 

$info_box_contents[$row][$col] = array('align' => 'left',
                                          'params' => 'class="smallText" width="33%" valign="top"',
                                          'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' .  tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><big> <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . $categories['categories_name'] . '</b></a></big><br>' . $text_subcategories );
   $col ++;

 

and add a <br> tage before the <big> tag. This will add a carriage return to the line and will show the category name on the bottom of the category piture. The code will look like this.

 

$info_box_contents[$row][$col] = array('align' => 'left',
                                          'params' => 'class="smallText" width="33%" valign="top"',
                                          'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' .  tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><br><big> <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . $categories['categories_name'] . '</b></a></big><br>' . $text_subcategories );
   $col ++;

 

Hope this helps ;)

Link to comment
Share on other sites

  • 3 weeks later...

Hi Gustavo!

 

Your Main Categories Mod is great!!!

 

Listen?.I have the enable/disable categories mod installed. http://www.oscommerce.com/community/contributions,326

 

The mod will disable / enable categories in the default left categories menu?.but not the Main Categories mod.

 

Can you help? Let me know if you need a file, etc.

 

Also...can you make it so the subcategories will use a "..." when it goes so many categories or characters...so that "all" of the subcategories aren't listed? The box can get pretty big...and if the customer wants to go that deep...they can use the menu.

 

I know it sounds redundant to have both...but I was trying to achieve a "portal" look.

 

See what I mean: http://www.shopabundle.com

 

Thanks!

 

Rick???...

Link to comment
Share on other sites

  • 2 months later...

Hello Gustavo, first of all sorry about my english, I haven?t practice it for a while...

 

I installed your mod Main Categories V 1.0c and it works great, but I need to show the amount of products in each category, just as the original Categories Box... I hope you can help me.

 

Thank You,

Juan Ugarte

Truth? You can?t handle the truth!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...