Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] More Category Boxes


Guest

Recommended Posts

this is my first posting here .. hi all

 

i found a solution to the subcategories not showing up when using SEO Urls and removing the ?infoBox=X part of the url, problem.

 

the solution is to submit the "infobox=X" parameter internally using the .htaccess file

 

example

RewriteRule ^mystuff-c-10.html$ mystuff-c-10.html?infoBox=1

 

this way the URL wont be altered (google) but the system will work as planned.

 

just letting you know because this problem drove me mad for months and now that i found a workaround i feel like linus torwald and i hope it helps someone

Link to comment
Share on other sites

Thanks for this contributions

I d like to say if is possible add multilanguage box title.

Thanks

Is very important for me

 

Roberto

Link to comment
Share on other sites

  • 2 weeks later...

I read a previous post as to how to add different header images to each category box,, but how would you place 1) different background images for the actual box.... or 2) use different css stylings for each box? This has been asked before above, however, no usable responses. Would it be similar to the code above? where placed? Thanks in advance.

 

Jonathan :blink:

Link to comment
Share on other sites

Hello Every one,

 

I would like to show the boxes on the main page at the middle area below the new products box, not the right or left column, tried many ways but did not succeed, I believe a code must be inserted on the index.php file.

 

Can you kindly advise what should I insert (code) ?

 

Also If I want to replace the category name with a just any name, can I do that ?

 

Thanks for your help.

 

Regards

Ahmed

Link to comment
Share on other sites

  • 3 weeks later...

Hi everyone!

I've just installed this contribution and it's working perfectly! It is exactly what I needed. The one problem I have is that on each category box, the rounded top left corner is showing. I only want this to show on the top box - all others below it should be have normal corners. I've been through this thread and haven't found the answer. Any ideas?

 

menu_image.jpg

 

 

Thanks,

Karim

 

ps. I could also use a multi-language contribution for this. Each of my category headers is only in English even though my site is also in German and French.

Link to comment
Share on other sites

Hi everyone!

I've just installed this contribution and it's working perfectly! It is exactly what I needed. The one problem I have is that on each category box, the rounded top left corner is showing. I only want this to show on the top box - all others below it should be have normal corners. I've been through this thread and haven't found the answer. Any ideas?

 

menu_image.jpg

 

 

Thanks,

Karim

 

ps. I could also use a multi-language contribution for this. Each of my category headers is only in English even though my site is also in German and French.

Link to comment
Share on other sites

  • 2 months later...

Im having the same problem as Kittidid on page 2 :

 

1146 - Table 'emilys_oscommerce_st0.categories_more' doesn't exist

 

select * from categories_more

 

[TEP STOP]

 

when i try to access the Admin side of the Contrib.

 

What was the solution in her case?

 

 

And i cant find Admin >> Configuration >> More Categories ... it doesn't seem to be there.... :'(

So i cant disable the Default Box.... is it enuff to do that in the DB.. setting the value of DEFAULT_CATEGORY_BOX_ENABLED to false?

 

Thanks in advance

 

Hjaelmen // Martin

Link to comment
Share on other sites

Hi:

 

I have to install more_catalogies onto my shop.

However, I met some problem.

After I done all the steps.

I cannot login the admin/index.php

but the shop/index.php is ok, I can still view the shop content, it seems nothing has been change from the shop view.

I wonder what cause the problem for me not able to go to the admin/index.php?

 

Before I install the more-catagories, I have back up my original php code, but not the database.

currently, both version of the php code are not working

then, I assume that is because of the mysql dababase, since I have imported the more_catagories.sql

 

Is there anybody know how can i solve this problem?

btw, I am running this at my local computer.

 

thanks

 

Alex

Link to comment
Share on other sites

  • 3 weeks later...

Ive installed the More Category Boxes mod. I want to insert a new categories, but when i do, it gets duplicated like this ~

 

cat.gif

 

I only want "sawyer" once in the new box, not in the main category.

 

Does anyone know how i can fix this?

 

Thanks in advance x

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Hi i installed this Mod, installation went perfectly.

My DB was updated succesfully and i modified all files.

 

But it just won't display the new boxes in my Shop?

When i update them in my administration it says : Success: Categories have been successfully updated.

But they don't show in the shop. >_<

 

Any idea what could cause this?

i already disabeled the default catergory .

 

Thanks in advance!

Mellie

Link to comment
Share on other sites

Hi i installed this Mod, installation went perfectly.

My DB was updated succesfully and i modified all files.

 

But it just won't display the new boxes in my Shop?

When i update them in my administration it says : Success: Categories have been successfully updated.

But they don't show in the shop. >_<

 

Any idea what could cause this?

i already disabeled the default catergory .

 

Thanks in advance!

Mellie

 

After studying all files, i missed one eventhough i thought i was being very accurate :-"

 

Well, i am one happy gall now.

 

So thanx for just listening :lol: :blush:

 

Byebye

Edited by mellie81
Link to comment
Share on other sites

Hi.

 

I have just install this mod, but i have bought my template from templatemonster and I cant get the same style at both categories.

How shell I do?

I just want to use the same style that i have at the first.

Here is my categories.php:

 

<?php
/*
 $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
 function tep_show_category($counter, $count) {
   global $tree, $categories_string, $cPath_array, $ii;

if ($count == 0 ) $kk=' '; else $kk=' class="bg2"'; 

$count++;

if(!$tree[$counter]['level']){ 
$categories_string .= $categories_string ? '' : ''; 
$categories_string .= '							
							<tr'.$kk.'>
							<td width="20" align="center" class="bg3">'.tep_image(DIR_WS_IMAGES.'bg_list.gif').'</td>
							<td width="1" bgcolor="E7E6E6"></td>
							<td width="139" class="bg4"><a href=';

if (SHOW_COUNTS == 'true') {
  $products_in_category = tep_count_products_in_category($counter);
  if ($products_in_category > 0) {
	$num_prod =  ' ('.$products_in_category.')';

  }
}

if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';

// display categry name
$categories_string .= $tree[$counter]['name'];
$categories_string .= $num_prod.'</a></td>
						</tr>';

  }else{

 // SUBCATEGORY
if (SHOW_COUNTS == 'true') {
  $products_in_category = tep_count_products_in_category($counter);
  if ($products_in_category > 0) {
	$num_prod =  ' ('.$products_in_category.')';
  }
}	 
$count = 2;
$categories_string .= '';

for($i=0;$i<$tree[$counter]['le vel'];$i++)
 $categories_string .= '';

$categories_string .= '
						<tr'.$kk.'>
							<td width="20" align="center" class="bg3"></td>
							<td width="1" bgcolor="E7E6E6"></td>
							<td width="139" class="bg4">-  <a href=

<li class="bg_list_sub"><a href=';   
if ($tree[$counter]['parent'] == 0) {
  $cPath_new = 'cPath=' . $counter;
} else {
  $cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';
// display category name
$categories_string .= $tree[$counter]['name'];
$categories_string .= $num_prod.'</a></td>
						</tr>';
 }



if ($tree[$counter]['next_id'] != false && $ii < 30) {
  tep_show_category($tree[$counter]['next_id'], $count);
}  
 }
?>
<!-- categories //-->
	  <tr>
		<td valign="top">
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 new infoBoxHeading($info_box_contents, true, false);

 $categories_string = '<table cellspacing="0" cellpadding="0" border="0" class="column_left">';
 $tree = array();

 $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
 while ($categories = tep_db_fetch_array($categories_query))  {
$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],
											'parent' => $categories['parent_id'],
											'level' => 0,
											'path' => $categories['categories_id'],
											'next_id' => false);

if (isset($parent_id)) {
  $tree[$parent_id]['next_id'] = $categories['categories_id'];
}

$parent_id = $categories['categories_id'];

if (!isset($first_element)) {
  $first_element = $categories['categories_id'];
}
 }

 //------------------------
 if (tep_not_null($cPath)) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
  unset($parent_id);
  unset($first_id);
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
  if (tep_db_num_rows($categories_query)) {
	$new_path .= $value;
	while ($row = tep_db_fetch_array($categories_query)) {
	  $tree[$row['categories_id']] = array('name' => $row['categories_name'],
										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false);

	  if (isset($parent_id)) {
		$tree[$parent_id]['next_id'] = $row['categories_id'];
	  }

	  $parent_id = $row['categories_id'];

	  if (!isset($first_id)) {
		$first_id = $row['categories_id'];
	  }

	  $last_id = $row['categories_id'];
	}
	$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
	$tree[$value]['next_id'] = $first_id;
	$new_path .= '_';
  } else {
	break;
  }
}
 }
$count = 0;
 tep_show_category($first_element, $count); 
$categories_string .='</table>';
 $info_box_contents = array();
 $info_box_contents[] = array('text' => $categories_string);

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- categories_eof //-->

 

PLEASE HELP!

Link to comment
Share on other sites

  • 3 weeks later...

This is a great contribution and works well. But...

 

Does anyone here know how I can select sub categories to be placed in the boxes? At the moment only main categories are listed.

 

Thanks

 

M.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
Hi:

 

I have to install more_catalogies onto my shop.

However, I met some problem.

After I done all the steps.

I cannot login the admin/index.php

but the shop/index.php is ok, I can still view the shop content, it seems nothing has been change from the shop view.

I wonder what cause the problem for me not able to go to the admin/index.php?

 

Before I install the more-catagories, I have back up my original php code, but not the database.

currently, both version of the php code are not working

then, I assume that is because of the mysql dababase, since I have imported the more_catagories.sql

 

Is there anybody know how can i solve this problem?

btw, I am running this at my local computer.

 

thanks

 

Alex

 

hi, I'm having the same problem :(

Link to comment
Share on other sites

  • 3 weeks later...

I have use more categories and it works very good :)

I have use the files for max 25 directories.

 

Now i need to use 50 directories?

How can I change?

My store is now very change so I will not make a misstake.

Can I insert more tabells in phpmyadmin?

Or just import to 50 file?

 

 

Thanks ;)

Link to comment
Share on other sites

  • 2 months later...

I just installed this contribution, worked out a few glitches and started arranging my categories.

 

I finally finished reading through this thread, low and behold I spot a few post regarding SEO URL problems. :blink:

 

Optimizing a site with meta tags and search engine friend URL's are more important than a nicely organized menu structure.

 

Before I backtrack and delete this mod, has anyone found a fix for using it with any SEO's?

Exactly what problem is there when trying to use it with Ultimate SEO URL's?

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Does anyone have this contribution and Ultimate SEO URL contribution working together?

 

What exactly is the problem mentioned in a few previous post pertaining to SEO problems?

 

I would really like to use this contrib...

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

  • 2 weeks later...

I've just installed this on a test server and I am a little bit confused on how to use it to do what I need. I am running category tabs and subtabs for the main category menu. I need to create a category that is not displayed in the category tabs, but rather is displayed in the column left area.

 

From the looks of the contribution - I have to go into the normal Categories area to create my new category - but if I do this then I will end up with that category showing on the category tabs.

 

How do I either keep it from showing on category tabs - or create it in the More Categories area so that it only shows on the More Categories box?

~Tracy
 

Link to comment
Share on other sites

Hi all,

 

Installed 25categoriesand it works fine, but;

 

- I have made a new category box and can only put 10 categories in the box, if i select a 11th categorie and click update,

it goes back to the ten categories i already had.

 

Does anyone know why i cant put the 11th category in the box??

 

Thank you in advance,

 

Rob Veraar

Link to comment
Share on other sites

  • 3 weeks later...

I've installed this contrib as it is exactly what I am looking for.

Now I have a question I hope someone can answer.

 

Is it possible to add an Image in the InfoBox of Each Category, with each one having a different image.

Or is it possible to turn the whole thing in to a graphical menu.

 

Cheers

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...