Forums / All Other Contributions/Addons / Toggling Category/Product Status in admin by clicking on red/green square not working

Toggling Category/Product Status in admin by clicking on red/green square not working

Started by woodlandsprite on 29 Oct 2012, 8:47 PM · Views: 1,228

Results 1 to 5 of 5
29 Oct 2012, 8:47 PM
#1
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Toggling Category/Product Status in admin by clicking on red/green square not working

Fresh install of v151 using upgraded database from previous version of zencart.
I noticed that when trying to toggle product status (from enabled to disabled) by clicking on the red or green indicator does not appear to be working for me. I am running some plugins that made adjustments to some Admin files including stock by attribute.

When I hover over an "active" status, I receive the following link:

(while trying to activate a deactivated category:)
http://Domain.com/Secretly_renamed_admin_directory/categories.php?action=setflag_categories&flag=1&cID=71&cPath=

(while trying to disable an enabled product:)
http://Domain.com/Secretly_renamed_admin_directory/categories.php?action=setflag&flag=0&pID=241&cPath=37&page=1

I can switch the status by editing the product and marking it out of stock - but it would be much easier to do this by clicking on the status indicator buttons.

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

29 Oct 2012, 8:57 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Toggling Category/Product Status in admin by clicking on red/green square not working

woodlandsprite:

I am running some plugins that made adjustments to some Admin files
Therein lies your problem.

This is not a bug with Zen Cart itself. Moving this thread out of the Bug Reports section.*

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

29 Oct 2012, 9:10 PM
#3
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Toggling Category/Product Status in admin by clicking on red/green square not working

thanks DrByte. I know what all Admin files were touched, and I did a compare to the original install files for v1.5.1 - As I do not code, I am not sure which one might have caused the problem.

Any idea where to begin looking?

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

29 Oct 2012, 9:30 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Toggling Category/Product Status in admin by clicking on red/green square not working

The various "Similar Threads" links shown towards the bottom of this page list some related discussions.
The first one I see is this one, which has a similar title to yours: http://www.zen-cart.com/showthread.php?198996-Having-difficulty-toggling-the-Stock-Status-icon-on-the-admin-product-pages

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

29 Oct 2012, 10:20 PM
#5
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Toggling Category/Product Status in admin by clicking on red/green square not working

Thanks Dr Byte. That was exactly it. Did not notice the suggested threads at the bottom. Those are a fantastic resource and I'll keep an eye on those from now on! Really appreciate your assistance.

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2