quentinb Posted August 2, 2009 Share Posted August 2, 2009 Hi. I have osCommerce site which sells just about anything. My homepage displays random products with images from the database. One of my sub-categories is Lingerie. I want this category to be active with all the products, but I do NOT want the products to be displayed on the homepage. SO, I do NOT want the lingerie photos to show on my homepage. It must still be active so users can click on the sub-category to see the sexy lingerie. I cannot find a contribution for this or I am blind. Technical answers welcome. Any help would be perfect. PLEASE. THANKS. Quote Link to comment Share on other sites More sharing options...
spooks Posted August 2, 2009 Share Posted August 2, 2009 assuming your talking of the new_products.php module. u simply need to add to the query after the where and c.categories_id <> xx replace xx with the appropiate id Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
quentinb Posted August 2, 2009 Author Share Posted August 2, 2009 HI. Thanks for that, totally forgot about it. But I still need help. I used a contribution to display random products on the homepage, apart from the Whats New. It displays 12 random products on my homepage. I need to modify that to NOT display the lingerie products. Should I look at the module itself for the modification or is there a setting in osc I could set? Thanks. assuming your talking of the new_products.php module. u simply need to add to the query after the where and c.categories_id <> xx replace xx with the appropiate id Quote Link to comment Share on other sites More sharing options...
spooks Posted August 2, 2009 Share Posted August 2, 2009 is there a setting in osc I could set? only if the contib added one!! otherwise look at the query Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
quentinb Posted August 2, 2009 Author Share Posted August 2, 2009 Hi. Got it working, thanks. Contribution used was called Random Pro, to display random products on the homepage. Inside the source it says define('NOT_CATEGORI', "('','','','','','','','','','')"); You have to add your category_id into the single qoutes. The comments in the source is not in english so not easy to understand what is going on in it. Thanks Again. . . . only if the contib added one!! otherwise look at the query Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.