Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Can I disable all of a particular manufacturers' products?

Can I disable all of a particular manufacturers' products?

Started by coucho on 27 Jun 2016, 10:16 PM · Views: 1,081

Results 1 to 6 of 6
27 Jun 2016, 10:16 PM
#1
coucho avatar

coucho

Zen Follower

Join Date:
Jan 2008
Location:
Memphis, USA
Posts:
298
Plugin Contributions:
0

Post #1 by coucho

Hello,

I,m in negotians with one of my manufactuers and will no longer be able to list their products in a few days. I,m sure the situation will resolve itself in time but I dont want to unlist the extensive product list. I went into the admin and it asked that if I didnt want the manufaturer the inventory would be deleted too.

Is there a work around this or did I just overlook that option?

Thanks for any help and I am using v.1.5

28 Jun 2016, 12:17 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

  1. Click on that manufacturer in the Admin. In the URL you'll see an mID like &mID=999. Note that ID number.

  2. Go to Admin->Tools->Install SQL Patches, and paste in the following:

update products set products_status=0 where manufacturers_id=999;

Then replace the 999 with your actual manufacturers ID number.
Then click Send.

That will disable all those products.

Later when you want to re-enable them, change the 0 to a 1 instead and run it again.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jun 2016, 1:34 AM
#3
coucho avatar

coucho

Zen Follower

Join Date:
Jan 2008
Location:
Memphis, USA
Posts:
298
Plugin Contributions:
0

Post #3 by coucho

Hi,

Thanks for your help but there is one issue left. I went to the admin and ran the query with the correct id and the admin shows I have 0 products from that manufacturer but they are still showing up on the website. I've cleared the cache in the browser but they still show up. Is there anything else I should do?

Thanks

30 Jun 2016, 2:59 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Admin->Configuration->Stock ... is it set to skip displaying products that are out of stock? or products that are disabled?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jun 2016, 3:19 AM
#5
coucho avatar

coucho

Zen Follower

Join Date:
Jan 2008
Location:
Memphis, USA
Posts:
298
Plugin Contributions:
0

Post #5 by coucho

It was set to zero set product to off when out of stock. I don't know why it isn't working. If we cant get that to work can you write me a script to delete the bunn products

30 Jun 2016, 9:03 PM
#6
coucho avatar

coucho

Zen Follower

Join Date:
Jan 2008
Location:
Memphis, USA
Posts:
298
Plugin Contributions:
0

Post #6 by coucho

I solved the problem by deleting the products. I appreciate everybody in helping me resolve this issue. I just wont do business with that company any longer.