Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Need some SQL help merging All_prods


Recommended Posts


I installed the enable/ disable category contribution. It has you alter the Queries to the database, to reflect the change it made. It verifies that the cetegory status is '1'. This works great, but not perfect. I've installed some other contributions, and I need to incorporate this change into them.

I'm haveing a hard time especialy with the all_prods contribution. the query in it is

  $listing_sql = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' order by p.products_price, pd.products_name";

I need to somehow add to this a line basically saying

where c.categories_status = '1' and...

, where as usual, C is TABLE_CATEGORIES.


I will also need help finding how to add this change to the categories dropdown list in the advanced search.




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.

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