Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All Manufacturers and their products Categories


buynotebookscheap

Recommended Posts

I installed All Manufacturers and their products Categories and see this error.

 

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

where can I view this?

You can't unless you go looking through the source code for this contribution. The field is queried alright but there is no mentioning of it with the install.txt. So either it is an ommision from the installation instructions and you best contact bruyndoncx for the specifics or it is something used in the contributors own shop and should not have been included with this contrib.

Link to comment
Share on other sites

Don,

You can view the table categories using the mysql agent mysqladmin...this should be setup by your provider...the code in your script categories c relates to 'c.categories_status' and verify that categories_status is set up in your sql script the script in the contribution

download...

I hope this helps

Roman

Link to comment
Share on other sites

My mistake, the categories_status field is introduced in another contribution called 'Enable/Disable Categories'.

 

If you get this error, you can just remove the field from the where clause, so that it becomes:

 

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_id = cd.categories_id and cd.language_id = 1 GROUP BY m.manufacturers_name, cd.categories_name

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

My mistake, the categories_status field is introduced in another contribution called 'Enable/Disable Categories'.

 

If you get this error, you can just remove the field from the where clause, so that it becomes:

 

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_id = cd.categories_id and cd.language_id = 1 GROUP BY m.manufacturers_name, cd.categories_name

Which file should I edit?

Buy Notebooks Cheap

Link to comment
Share on other sites

Which file should I edit?

This section I should edit.

<!-- 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))) {

?>

Buy Notebooks Cheap

Link to comment
Share on other sites

This section I should edit.

<!-- 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))) {

?>

Take a look at. http://www.buynotebookscheap.com/all_manuf..._categories.php

Buy Notebooks Cheap

Link to comment
Share on other sites

You can't unless you go looking through the source code for this contribution. The field is queried alright but there is no mentioning of it with the install.txt. So either it is an ommision from the installation instructions and you best contact bruyndoncx for the specifics or it is something used in the contributors own shop and should not have been included with this contrib.

How do I set the font size, there huge on this page.

Buy Notebooks Cheap

Link to comment
Share on other sites

there is a specific css class for the category links created called 'category_desc', the manufacturer label is defined as h1 and thus inherits the default styling for this.

 

If you don't know how to modify this, you should read up the thread 'Basics for design change'

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

there is a specific css class for the category links created called 'category_desc', the manufacturer label is defined as h1 and thus inherits the default styling for this.

 

If you don't know how to modify this, you should read up the thread 'Basics for design change'

Thanks I got it.

Buy Notebooks Cheap

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...