Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Disable a certain category of products from appearing on manufacturers page

    There is a category set up that is already hidden from appearing in the new products module, but how can this category also be hidden from showing up on the manufacturers pages?

    In other words, when Manufacturer product A is in Category 1 it should show up on the manufacturers list of products. But when Manufacturer Product A is in Category 2 it should not display in the manufacturers list of products.

    In case it helps, the code used to hide a category from new products module is this:

    PHP Code:
    if ( (($manufacturers_id && $_GET['filter_id'] == 0) || $_GET['music_genre_id'] > || $_GET['record_company_id'] > 0) || (!isset($new_products_category_id) || $new_products_category_id == '0') ) {
      
    $new_products_query "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                    p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                               from " 
    TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd
                               where p.products_id = pd.products_id
                               and p.master_categories_id != 3
                               and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "'
                               and   p.products_status = 1 " 
    $display_limit;
    } else { 

  2. #2
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Disable a certain category of products from appearing on manufacturers page

    Would I put something like this in tpl_manufacturer_filter_info.php?

  3. #3
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Disable a certain category of products from appearing on manufacturers page

    Looking to do the same thing accomplished by the code above, but for manufacturer pages. Has anyone ever done this before? If not, is there a way to modify that code example for the manufacturers pages? (I feel like this section doesn't get much attention from the Zen Cart Gurus...)

    TIA!

  4. #4
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Disable a certain category of products from appearing on manufacturers page

    Is bumping aloud in this forum? If so, bump.

 

 

Similar Threads

  1. Restrict Shipping of a category of products from certain states
    By Ashaw33 in forum Addon Shipping Modules
    Replies: 13
    Last Post: 30 May 2015, 11:32 PM
  2. Free Shipping if 4 products from certain category are bought?
    By Serious in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 14 Jul 2011, 03:06 PM
  3. Tabbed Producst Pro: Disable Tab from Certain Products?
    By acreativepage in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Oct 2010, 01:21 AM
  4. Replies: 4
    Last Post: 18 Mar 2009, 02:43 AM
  5. How to disable certain payment methods for certain products?
    By AccurateOptics in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Mar 2007, 06:53 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