osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Featured Products

This is a discussion on Featured Products within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This mod eliminates products from the drop down menu if they are a. a disabled product AND/OR b. a product ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-10-2007, 07:21 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,113
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Featured Products

This mod eliminates products from the drop down menu if they are a. a disabled product AND/OR b. a product in a disabled category, if the enable/disable categories mod is installed.

1. in catalog/admin/featured.php:

FIND:
$featured_query = tep_db_query("select p.products_id from " . TABLE_PRODUCTS . " p, " . TABLE_FEATURED . " s where s.products_id = p.products_id");

REPLACE WITH: if you do not have catagory enable diable contrib installed
// 10 Aug 2007 eliminate disabled products and products in disabled categories
$featured_query = tep_db_query("select p.products_id from " . TABLE_PRODUCTS . " p, " . TABLE_FEATURED . " s on p.products_id = p2c.products_id where s.products_id = p.products_id OR p.products_status = '0'");

OR if you have catagory enable/disable contrib installed:
// 10 Aug 2007 eliminate disabled products and products in disabled categories
$featured_query = tep_db_query("select p.products_id from " . TABLE_PRODUCTS . " p, " . TABLE_FEATURED . " s left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id where s.products_id = p.products_id OR p.products_status = '0' OR c.categories_status = '0'");


More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Featured Products michael_s New osCommerce Contributions 3 07-27-2007 10:23 AM
Featured Products michael_s New osCommerce Contributions 0 03-23-2007 12:00 PM
Featured Products michael_s New osCommerce Contributions 0 02-06-2007 01:11 AM
Featured Products HELP Please. lil-raskals osCommerce 2.2 Modification Help 0 10-07-2004 06:51 AM
Featured Products Stu osCMax v1.7 Discussion 3 09-13-2004 07:42 PM


All times are GMT -8. The time now is 07:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax