Jump to content



Latest News: (loading..)

- - - - -

osC 2.3.1 & More Category Boxes contrib... ?


  • Please log in to reply
7 replies to this topic

#1   jhande

jhande
  • Members
  • 2,112 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:White Mountains, NH USA

Posted 30 May 2012 - 08:19 PM

I am interested in trying to get this contribution More Category Boxes v1 by Jared Call to work with osC 2.3.1 if possible.

I checked the contributions support thread: http://forums.oscommerce.com/index.php?showtopic=158814 but nothing, it seems dead in the past.

The first problem is pertaining to editing the includes/column_left.php file.

It states to find this:
if ((USE_CACHE == 'true') && empty($SID)) {
	echo tep_cache_categories_box();
  } else {
	include(DIR_WS_BOXES . 'categories.php');
  }

Replace with this:
/* Commented out for More Category Boxes contrib
  if ((USE_CACHE == 'true') && empty($SID)) {
	echo tep_cache_categories_box();
  } else {
	include(DIR_WS_BOXES . 'categories.php');
  }
// More Category Boxes contrib
*/

// More Category Boxes contrib
$default_category_box_enabled_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'DEFAULT_CATEGORY_BOX_ENABLED' ");
$default_category_box_enabled = tep_db_fetch_array($default_category_box_enabled_query);

if ($default_category_box_enabled['configuration_value'] == 'true') {

  if ((USE_CACHE == 'true') && empty($SID)) {
	echo tep_cache_categories_box();
  } else {
	include(DIR_WS_BOXES . 'categories.php');
  }
}

  include(DIR_WS_BOXES . 'more_categories.php');
// More Category Boxes contrib.

Problem is that the bm_categories.php has this bit of code (only thing I can find similar):
if ((USE_CACHE == 'true') && empty($SID)) {
		$output = tep_cache_categories_box();
	  } else {
		$output = $this->getData();
	  }

New file to upload which is related; includes/boxes/more_categories.php

With my very, very limited knowledge, is this something that can be made to work?
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce v2.2 MS2 060817 -
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -

#2   jhande

jhande
  • Members
  • 2,112 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:White Mountains, NH USA

Posted 01 June 2012 - 02:59 AM

Has anyone successfully adapted the More Category Boxes contrib to 2.3.1?

Is there any other options available that would give similar results?

Any input would be greatly appreciated!
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce v2.2 MS2 060817 -
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -

#3   nottheusual1

nottheusual1
  • Members
  • 42 posts
  • Real Name:[you decide]
  • Location:Backwater, OH

Posted 01 June 2012 - 06:55 PM

Try replacing the bit you found with this. NO guarantees, but it should work:


/* Commented out for More Category Boxes contrib
  if ((USE_CACHE == 'true') && empty($SID)) {
		echo tep_cache_categories_box();
  } else {
		include(DIR_WS_BOXES . 'categories.php');
  }
// More Category Boxes contrib
*/
// More Category Boxes contrib
$default_category_box_enabled_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'DEFAULT_CATEGORY_BOX_ENABLED' ");
$default_category_box_enabled = tep_db_fetch_array($default_category_box_enabled_query);
if ($default_category_box_enabled['configuration_value'] == 'true') {
  if ((USE_CACHE == 'true') && empty($SID)) {
		echo tep_cache_categories_box();
  } else {
		$output = $this->getData();
  }
}
  include(DIR_WS_BOXES . 'more_categories.php');
// More Category Boxes contrib.

:not_the_usual1
   [you decide]

-- Trying to figure it out, just like everyone else --

#4   jhande

jhande
  • Members
  • 2,112 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:White Mountains, NH USA

Posted 02 June 2012 - 12:41 AM

Thanks for the reply.

Once I get a few other things sorted out I'm going to try installing the contribution.
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce v2.2 MS2 060817 -
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -

#5   rajusps

rajusps
  • Members
  • 3 posts
  • Real Name:Rajesh PS

Posted 01 July 2012 - 08:27 AM

Hi
I am having the same issue ie more categories is not suitable for osc 2.3.1 because there is no column_left.php. if any one found solution please reply

#6   PupStar

PupStar
  • Members
  • 559 posts
  • Real Name:Mark
  • Gender:Male

Posted 01 July 2012 - 09:46 AM

refer to post #38 by germ to see how the columns work

http://forums.oscommerce.com/topic/368458-231-a-how-to-road-mapno-questions-just-how-tos-please/page__st__20__p__1589795#entry1589795

#7   jhande

jhande
  • Members
  • 2,112 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:White Mountains, NH USA

Posted 01 July 2012 - 11:01 AM

X

Edited by jhande, 01 July 2012 - 11:02 AM.

- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce v2.2 MS2 060817 -
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -

#8   rajusps

rajusps
  • Members
  • 3 posts
  • Real Name:Rajesh PS

Posted 01 July 2012 - 12:30 PM

@PupStar
Thanks

Mark