Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    8
    Plugin Contributions
    0

    Default Documents vs. Products

    I have been studying Zen Cart 1.3.5 for some time now and have read that there was a way to exclude Documents (Document-General) from Products (Product-General) via the following link.

    http://www.zen-cart.com/forum/showpost.php?p=125980

    In short, I have started to add documents to my store (i.e. press releases, specification sheets, etc.) which are purely informational and not intended to be sold.

    I would like to be able to exclude these documents from appearing in the "New Products for [month]" box and "New Products [more]" sidebox.

    I'm guessing that a .PHP file would have to be modified somehow but was wondering if this can be controlled somewhere in the Administrator console.

    In the event that it cannot, I was hoping to find out which .PHP file needs to be modified and also what needs to be modified to exclude "documents" for informational purposes only from being listed along with the "products" that are already for sale.

    This is what I've found so far in the threads but could use a little more guidance.

    product_listing.php
    tpl_modules_product_listing.php
    tpl_product_listing.php

    Any help would be appreciated.

    Thanks,
    Arnold

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Documents vs. Products

    You would have to change all select statements where you do not want to see the Documents or products_type 3 ...

    So if you located all of the select statements and surrounded the WHERE clause in parens and added and products_type != 3

    example:
    Change from:
    WHERE something something something order by ...
    to read instead:
    WHERE (something something something) and products_type !=3 order by ...
    You would be blocking the Document products_type 3

    NOTE: some WHERE clauses are built in 1 location some are built from several peices and parts etc. Some WHERE statements need products_type and others might need p.products_type ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Documents vs. Products

    Thanks... much appreciated. I'll let you know how it works out.

 

 

Similar Threads

  1. v139h Is there any way to batch all products types to documents?
    By gotyed in forum General Questions
    Replies: 5
    Last Post: 9 Mar 2012, 05:50 PM
  2. Documents and Products showing in all products
    By Rickk123 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 24 Aug 2010, 07:07 PM
  3. Music products type displayed on different categories sidebox like documents
    By 7inter in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Feb 2009, 10:52 AM
  4. Add PDF documents to products?
    By vision2003 in forum General Questions
    Replies: 6
    Last Post: 14 Aug 2008, 05:20 AM
  5. Extra documents/links on products
    By relihanl in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Jan 2007, 12:49 AM

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