Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured Products errors


taosan

Recommended Posts

Hi there :'(

 

I just implemented the Featured Products contribution in my OSC but gives this error in my admin page:

 

1146 - Table 'gadgetsk_shop.TABLE_FEATURED' doesn't exist

 

select count(*) as total from products p, TABLE_FEATURED s, products_description pd where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = s.products_id

 

[TEP STOP]

 

I have checked 100 times but can`t find the error. I also installed the sql file that was included. Please help. :'(

 

Taosan.

Link to comment
Share on other sites

  • 2 weeks later...
I have pretty much this exact same problem.  Can anyone help?

Did you install the bug fix for featured products?

 

If you had renamed the "categories_description" table in your database you would get an error.

 

Only changed the /includes/modules/featured.php on Line 20 as follows:

 

ORIGINAL:

$cat_name_query = tep_db_query("select categories_name from categories_description where categories_id = '" . $featured_products_category_id . "' limit 1");

$cat_name_fetch = tep_db_fetch_array($cat_name_query);

 

 

FIXED:

$cat_name_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $featured_products_category_id . "' limit 1");

Link to comment
Share on other sites

check that you have the table defined in database_tables.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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