Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide Products


quentinb

Recommended Posts

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.

Link to comment
Share on other sites

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

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

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

Link to comment
Share on other sites

is there a setting in osc I could set?

 

only if the contib added one!!

 

otherwise look at the query

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

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

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.

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