Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: parse error, unexpected '}' in /home/buynoteb/public_html/includes/column_left.php on line 97


buynotebookscheap

Recommended Posts

Parse error: parse error, unexpected '}' in /home/buynoteb/public_html/includes/column_left.php on line 97

<?php

/*

$Id: column_left.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// STS: ADD

$sts_block_name = 'header2columnleft';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

// STS: ADD

$sts_block_name = 'categorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

// STS: ADD

$sts_block_name = 'manufacturerbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'search.php');

 

// STS: ADD

$sts_block_name = 'searchbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'information.php');

 

// STS: ADD

$sts_block_name = 'informationbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

// STS: ADD

$sts_block_name = 'cartbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

// STS: ADD

$sts_block_name = 'maninfobox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

// STS: ADD

$sts_block_name = 'orderhistorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'all_manufacturers_categories.php');

} else {

 

include(DIR_WS_BOXES . 'best_sellers.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

// STS: ADD

$sts_block_name = 'bestsellersbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

// STS: ADD

$sts_block_name = 'specialfriendbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

 

// STS: ADD

$sts_block_name = 'languagebox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'currencies.php');

 

// STS: ADD

$sts_block_name = 'currenciesbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

}

 

 

?>

Buy Notebooks Cheap

Link to comment
Share on other sites

What contribution is this? I will look into this.

All Manufacturers Categories

I copied a fresh file to get rid of the error here is the original file below I want to add this - include(DIR_WS_BOXES . 'all_manufacturers_categories.php'); to the file, I just need to know where should it be placed and what code should be used to insert it.

 

Original:

<?php

/*

$Id: column_left.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// STS: ADD

$sts_block_name = 'header2columnleft';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

// STS: ADD

$sts_block_name = 'categorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

// STS: ADD

$sts_block_name = 'manufacturerbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'search.php');

 

// STS: ADD

$sts_block_name = 'searchbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'information.php');

 

// STS: ADD

$sts_block_name = 'informationbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

// STS: ADD

$sts_block_name = 'cartbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

// STS: ADD

$sts_block_name = 'maninfobox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

// STS: ADD

$sts_block_name = 'orderhistorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

// STS: ADD

$sts_block_name = 'bestsellersbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

// STS: ADD

$sts_block_name = 'specialfriendbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

 

// STS: ADD

$sts_block_name = 'languagebox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'currencies.php');

 

// STS: ADD

$sts_block_name = 'currenciesbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

}

 

?>

Buy Notebooks Cheap

Link to comment
Share on other sites

All Manufacturers Categories

I copied a fresh file to get rid of the error here is the original file below I want to add this - include(DIR_WS_BOXES . 'all_manufacturers_categories.php'); to the file, I just need to know where should it be placed and what code should be used to insert it.

 

Original:

<?php

/*

$Id: column_left.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// STS: ADD

$sts_block_name = 'header2columnleft';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

// STS: ADD

$sts_block_name = 'categorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

// STS: ADD

$sts_block_name = 'manufacturerbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'search.php');

 

// STS: ADD

$sts_block_name = 'searchbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'information.php');

 

// STS: ADD

$sts_block_name = 'informationbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

// STS: ADD

$sts_block_name = 'cartbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

// STS: ADD

$sts_block_name = 'maninfobox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

// STS: ADD

$sts_block_name = 'orderhistorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

// STS: ADD

$sts_block_name = 'bestsellersbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

// STS: ADD

$sts_block_name = 'specialfriendbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

 

// STS: ADD

$sts_block_name = 'languagebox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'currencies.php');

 

// STS: ADD

$sts_block_name = 'currenciesbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

}

 

?>

 

Ok what was your orignal file can you post that here?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Ok what was your orignal file can you post that here?

<?php

/*

$Id: column_left.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// STS: ADD

$sts_block_name = 'header2columnleft';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

// STS: ADD

$sts_block_name = 'categorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

// STS: ADD

$sts_block_name = 'manufacturerbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'search.php');

 

// STS: ADD

$sts_block_name = 'searchbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'information.php');

 

// STS: ADD

$sts_block_name = 'informationbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

// STS: ADD

$sts_block_name = 'cartbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

// STS: ADD

$sts_block_name = 'maninfobox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

// STS: ADD

$sts_block_name = 'orderhistorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

// STS: ADD

$sts_block_name = 'bestsellersbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

// STS: ADD

$sts_block_name = 'specialfriendbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

 

// STS: ADD

$sts_block_name = 'languagebox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'currencies.php');

 

// STS: ADD

$sts_block_name = 'currenciesbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

}

 

?>

Buy Notebooks Cheap

Link to comment
Share on other sites

<?php

/*

$Id: column_left.php,v 1.1 2003/09/08 19:26:22 jhtalk Exp jhtalk $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// STS: ADD

$sts_block_name = 'header2columnleft';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

// STS: ADD

$sts_block_name = 'categorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

// STS: ADD

$sts_block_name = 'manufacturerbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'search.php');

 

// STS: ADD

$sts_block_name = 'searchbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'information.php');

 

// STS: ADD

$sts_block_name = 'informationbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

// STS: ADD

$sts_block_name = 'cartbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

// STS: ADD

$sts_block_name = 'maninfobox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

// STS: ADD

$sts_block_name = 'orderhistorybox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

// STS: ADD

$sts_block_name = 'bestsellersbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

// STS: ADD

$sts_block_name = 'specialfriendbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

 

// STS: ADD

$sts_block_name = 'languagebox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'currencies.php');

 

// STS: ADD

$sts_block_name = 'currenciesbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

}

 

?>

 

Ok with this code did you have any errors?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

this code works.

Where should I place this code.

/********************************/

/* STEP 4 (link the new file) */

/********************************/

 

add the link anywhere you'd like it to appear on your site

e.g. in catalog/includes/column_left.php

you can use the next php line to place include a box with the link to the page:

 

include(DIR_WS_BOXES . 'all_manufacturers_categories.php');

Buy Notebooks Cheap

Link to comment
Share on other sites

If you want to put this code include(DIR_WS_BOXES . 'all_manufacturers_categories.php'); under categories I would put it under this:

 

Look for this:

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

 

change it to this:

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

 

give that a try!

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

If you want to put this code include(DIR_WS_BOXES . 'all_manufacturers_categories.php'); under categories I would put it under this:

 

Look for this:

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

 

change it to this:

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

 

give that a try!

That worked the link is present but when I click on it this is displayed.

 

Top » Catalog » All Brands and Products Categories

All Brands and Products Categories

1054 - Unknown column 'c.categories_status' in 'where clause'

 

SELECT DISTINCT count(p2c.products_id) as prodcount, cd.categories_id, cd.categories_name, m.manufacturers_id, manufacturers_name, manufacturers_image FROM products p, categories c, categories_description cd, manufacturers m, products_to_categories p2c WHERE p.manufacturers_id = m.manufacturers_id AND p.products_id = p2c.products_id AND p.products_status = 1 AND p2c.categories_id = c.categories_id and c.categories_status = 1 and c.categories_id = cd.categories_id and cd.language_id = 1 GROUP BY m.manufacturers_name, cd.categories_name

 

[TEP STOP]

Buy Notebooks Cheap

Link to comment
Share on other sites

That worked the link is present but when I click on it this is displayed.

 

Top » Catalog » All Brands and Products Categories

All Brands and Products Categories

1054 - Unknown column 'c.categories_status' in 'where clause'

 

SELECT DISTINCT count(p2c.products_id) as prodcount, cd.categories_id, cd.categories_name, m.manufacturers_id, manufacturers_name, manufacturers_image FROM products p, categories c, categories_description cd, manufacturers m, products_to_categories p2c WHERE p.manufacturers_id = m.manufacturers_id AND p.products_id = p2c.products_id AND p.products_status = 1 AND p2c.categories_id = c.categories_id and c.categories_status = 1 and c.categories_id = cd.categories_id and cd.language_id = 1 GROUP BY m.manufacturers_name, cd.categories_name

 

[TEP STOP]

ok what is the link the website?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

ok can you post the all_manufacturers_categories.php right quick?

<?php

/*

$Id: all_manufacturers_categories.php,v 1.0 2006/01/25

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

All Manufacturers Categories by Carine Bruyndoncx

[email protected]

www.calimeross.com

 

Based on AllManufacturers contribution

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . $_SERVER['PHP_SELF']);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link($_SERVER['PHP_SELF']));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE ?>: <?php echo HEADING_TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table width="100%" border="0" align="center" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" class="columnLeft">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="breadcrumb" ><?php echo $breadcrumb->trail(' » '); ?>

</td></tr>

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="10" cellpadding="2">

<tr>

<!-- all manufacturers begin //-->

<?php

$row = -1;

$manufacturers_query = tep_db_query("SELECT DISTINCT count(p2c.products_id) as prodcount, cd.categories_id, cd.categories_name, m.manufacturers_id, manufacturers_name, manufacturers_image FROM " . TABLE_PRODUCTS . " p, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_MANUFACTURERS ." m, " . TABLE_PRODUCTS_TO_CATEGORIES ." p2c WHERE p.manufacturers_id = m.manufacturers_id AND p.products_id = p2c.products_id AND p.products_status = 1 AND p2c.categories_id = c.categories_id and c.categories_status = 1 and c.categories_id = cd.categories_id and cd.language_id = " . (int)$languages_id . " GROUP BY m.manufacturers_name, cd.categories_name");

$last_manid = '';

while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {

if ($manufacturers['manufacturers_id'] <> $last_manid ) {

$row++;

if ($last_manid) {

echo '</td>';

if ((($row / 3) == floor($row / 3))) {

?>

</tr>

<tr>

<?php

}

}

$last_manid = $manufacturers['manufacturers_id'];

echo '<td align="center" valign="top" width="33%" class="category_desc">';

echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] , 'NONSSL', false) . '">' ;

//If you'd like to have an image shown, remove the comment slashes from the next lines

// if ($manufacturers['manufacturers_image']) {

// echo tep_image(DIR_WS_IMAGES . $manufacturers['manufacturers_image'], $manufacturers['manufacturers_name'], '90', '45');

// } else {

echo '<h1>'. $manufacturers['manufacturers_name'] .'</h1>';

// }

echo "</a>\n";

}

echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '&category_id=' . $manufacturers['categories_id'], 'NONSSL', false) . '" style="text-decoration: none;">' ;

echo $manufacturers['categories_name'] . ' ('.$manufacturers['prodcount'].')';

echo "</a><br>\n";

}

?>

<!-- all manufacturers end //-->

</td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" class="columnRight">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr> <tr>

<td valign="top"> </td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

 

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Buy Notebooks Cheap

Link to comment
Share on other sites

Do you have an SQL file installed in your MySQL that is why is giving you an error?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

answered elsewhere - twice already ;)

 

basically, my mistake, categories_status field is added by another contribution. To fix this error just remove ' and c.categories_status = 1' from the sql statement.

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...