Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osC 2.3.1 & More Category Boxes contrib... ?


jhande

Recommended Posts

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://www.oscommerce.com/forums/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, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

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, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...