Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

disable manufactures


100asa

Recommended Posts

Hi,

 

What do you mean by 'disable' a manufacturer ? Products have a manufacturer code tied to them, do you want the manufacturer information not to show for a product, or not to be included in the manufacturers dropdown ??

 

Some more information please, about what you want to do.

 

Peter

Link to comment
Share on other sites

Hi,

Simple, delete the products.

 

Peter

 

I'm hoping to resolve the problem with the merchant, so didn't want to delete them. However, he emailed saying I'm being dropped (because I've questioned him where my stats/payment is). I just hope he pays me for what is owed since joining his program back in July. But I don't have high hopes.

 

Terry

myADDstore.com

'simply everything you need for yoru AD/HD'

Link to comment
Share on other sites

Hi,

 

Okay, sorry to hear about the payments,etc.

 

If there are a lot of products, and as you say, you may want to keep them in the database, you can simply add a column to the manufacturers table, something like:

 

disable_manufacturer

boolean

default value of zero

 

1. Set the value of the column to '1' for the said manufacturer.

 

2. Then when the manufacturers dropdown is done, check for the flag, just something like, a bit of pseudo code.

 

---------------------------------

 

if (!disable_manufacturer) {

include manufacturer in the dropdown list

}

 

---------------------------------

 

3. Then when displaying products, much the same code to be inserted.

 

I personally don't like "if not' statements, much cleaner like this .............

 

----------------------------

 

if (disable_manufacturer) {

} else {

include product

}

 

-----------------------------

 

Peter

Link to comment
Share on other sites

Hi,

 

Okay, sorry to hear about the payments,etc.

 

Thanks, Peter.

But...I don't know how to do this sort of thing; my webmaster takes care of anything beyond the most basic of operations. I'm no techie.

 

But all is well in that I was able to stop them from showing up by using the red status light. It works now!

 

Terry

 

-----------------------------

myADDstore.com

'simply everything you need for yoru AD/HD'

Link to comment
Share on other sites

I mean, as this contribution

http://www.oscommerce.com/community/contributions,326

another one only for manufacturers.

At this moment I've a manufacturers that not ship me any products, because our partnership is failed. But is short time I think that I'm already buy your products.

This is the reason I want disable only for a few times this manufacturers, without delete your products.

Thank you

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...