Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    help question Disable and enable product in admin not working? (red button or green button)

    Hello,

    I'm not sure if I am being silly or what not but the admin 'product disable/enable' function is not working. I turned a bunch of products off via an entire category turn off, making the green button turn red..along with each product within the category.

    Now I only want to enable certain products for the time being, but when I go into the category in admin and click the red button next to the product I want to turn on, it simply refreshes the page and remains red?

  2. #2
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default Re: Disable and enable product in admin not working? (red button or green button)

    Seems that you have installed Image Handler 4. If so check out this:
    http://www.zen-cart.com/showthread.p...t-Thread/page4

  3. #3
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default Re: Disable and enable product in admin not working? (red button or green button)

    Hello Webchills,

    I don't actually have image handler 4 installed, but I have check the code in the thread provided and it appears to be fine. FTP is telling me that this file has not been edited or had an override since I installed.

    I should perhaps take a flick through mods that are installed to see if there is any conflict.

    Many thanks for your help Webchills

  4. #4
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default Re: Disable and enable product in admin not working? (red button or green button)

    Maybe this might narrow it down - The categories can be turned off fully via the product status button, but the products within each category can not.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Disable and enable product in admin not working? (red button or green button)

    Quote Originally Posted by spiggles87 View Post
    I should perhaps take a flick through mods that are installed to see if there is any conflict.
    That's probably your smartest starting point.

    ref: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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.

  6. #6
    Join Date
    Jul 2010
    Location
    Oakville
    Posts
    7
    Plugin Contributions
    0

    Default Re: Disable and enable product in admin not working? (red button or green button)

    Spiggles87, I am having the same issue categories are disabling but not products, did you find any solution? I tried to find out as per dr.byte recommandation but there are so many files and unfortunatly I found this issue when migration from 1.3.9a to 1.5 done in production and I didn't test it in dev before putting it in Production. Any help in this regard will be appreciated. I have two environments in one I have image handler 4 and other without but problem is same in both environments.

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,541
    Plugin Contributions
    19

    Default Re: Disable and enable product in admin not working? (red button or green button)

    This happened to me recently and the fix was really easy: just find your admin/includes/modules/category_product_listing.php and run a compare with the one from a clean install. You can use WinMerge or Beyond Compare. Be careful so you don't kill any functionality you might have added.

  8. #8
    Join Date
    Jul 2010
    Location
    Oakville
    Posts
    7
    Plugin Contributions
    0

    Default Re: Disable and enable product in admin not working? (red button or green button)

    balihr, you rock man, it fixed my issue

  9. #9
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Disable and enable product in admin not working? (red button or green button)

    I know this is an old thread but I thought I'd post this in case someone one would find it useful.

    categories.php read:
    PHP Code:
    case 'setflag':

          if ( isset(
    $_GET['flag']) && ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
            if (isset(
    $_GET['pID'])) {
              
    zen_set_product_status($_GET['pID'], $_GET['flag']);
            }
          } 
    I changed it to:
    PHP Code:
    case 'setflag':

          if ( isset(
    $_POST['flag']) && ($_POST['flag'] == '0') || ($_POST['flag'] == '1') ) {
            if (isset(
    $_GET['pID'])) {
              
    zen_set_product_status($_GET['pID'], $_POST['flag']);
            }
          } 

 

 

Similar Threads

  1. v151 Toggling Category/Product Status in admin by clicking on red/green square not working
    By woodlandsprite in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 29 Oct 2012, 11:20 PM
  2. enable/disable Centerbox not working
    By Adam65 in forum Customization from the Admin
    Replies: 10
    Last Post: 9 Nov 2010, 03:35 PM
  3. Quantity Box and Refresh button not working
    By jharradine in forum Basic Configuration
    Replies: 5
    Last Post: 16 Mar 2010, 02:00 PM
  4. Paypal Subscription Button in Product not working
    By tyankee in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 1 May 2009, 04:05 AM
  5. Customer Login and Checkout button not working
    By fanderwald in forum General Questions
    Replies: 5
    Last Post: 30 Nov 2007, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR