Results 1 to 4 of 4
  1. #1
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Disabling / Re-enabling Categories Issue

    I did figure out how to disable categories, the problem is it also disables EVERY product within them, and when you re-enable the category, the products are still disabled and have to be re-enabled one at a time... now imagine how long it took me to re-enable every single product listing... it sucked...

    How can I re-enable all products at once?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Disabling / Re-enabling Categories Issue

    What version of Zen Cart? Using 156c, when I click the enable/disable category I'm presented with a sidebar query asking whether the products' status should be unchanged or enabled/disabled, respectively.

    To 'mass-enable' products in a category, navigate to that category so you can see its categories_id (it'll show as the cPath variable in the browser's address bar).

    Then navigate to Tools->Install SQL Patches and, using that cPath value (just the last portion if it's in the form mmm_nnn):

    UPDATE products SET products_status = 1 WHERE master_categories_id = nnn;

  3. #3
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Disabling / Re-enabling Categories Issue

    Quote Originally Posted by lat9 View Post
    What version of Zen Cart? Using 156c, when I click the enable/disable category I'm presented with a sidebar query asking whether the products' status should be unchanged or enabled/disabled, respectively.

    To 'mass-enable' products in a category, navigate to that category so you can see its categories_id (it'll show as the cPath variable in the browser's address bar).

    Then navigate to Tools->Install SQL Patches and, using that cPath value (just the last portion if it's in the form mmm_nnn):

    UPDATE products SET products_status = 1 WHERE master_categories_id = nnn;
    thank you!!!!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Disabling / Re-enabling Categories Issue

    Quote Originally Posted by jmberman View Post
    thank you!!!!
    Note that that query won't address linked product in that category if they were also made to be disabled. That requires a different query to accomplish if needed. I thought I posted it in the previous thread about disabling categories, but maybe didn't finish that.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v153 Locating issue with old ZC version when enabling PHP7
    By jerrygarciuh in forum General Questions
    Replies: 4
    Last Post: 12 Oct 2017, 10:07 PM
  2. Enabling/disabling left column based upon page ID
    By bobmeetin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2013, 05:34 PM
  3. Issue with search after enabling SSL
    By matchlock in forum Basic Configuration
    Replies: 0
    Last Post: 24 Aug 2011, 05:34 AM
  4. Disabling New Products & Enabling All Products in Category List
    By JRayfield in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jan 2010, 04:49 PM
  5. Conditional Enabling / Disabling of attributes
    By zenrajan in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Mar 2007, 07:05 AM

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