Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    10
    Plugin Contributions
    0

    Default Only show specials with images?

    Hi All,

    On the front main pages, I want the "Monthly Specials" bot to only show procudts that have images.

    Does anyone know where to change this? of what php I can add to do it?

    Cheers,
    Dean

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Only show specials with images?

    Difficult to filter only ones with images...much easier for you to obtain some representative image for all products

  3. #3
    Join Date
    Feb 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Only show specials with images?

    I thought of that, but I have 25,000 items and only 9500 of them have actual images.

    I used a No Image gif, but that looked real ugly, so I turned it off...

    I would have thought it would be easy to simply select only those items where products_image is null, but I cant seem to find the php program that displays the specials on the main screen.

    Regards,
    Dean

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

    Default Re: Only show specials with images?

    Peek at the module for:
    /includes/modules/specials_index.php

    and using your templates and overrides you can customize it to display just the products where the products_image is known ...
    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!

  5. #5
    Join Date
    Feb 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Only show specials with images?

    Perfect!! Thanks!

    For those that want the same just change the specials_index.php to the following:

    $specials_index_query = "select p.products_id, p.products_image, pd.products_name, p.master_categories_id

    from (" . TABLE_PRODUCTS . " p

    left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id

    left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )

    where p.products_id = s.products_id

    and p.products_id = pd.products_id

    and p.products_status = '1' and s.status = 1

    and p.products_image <> ''

    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";

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

    Default Re: Only show specials with images?

    Thanks for the update and for posting the SELECT that worked for you on this ...
    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!

 

 

Similar Threads

  1. v150 Specials listing and sidebox will only show ONE product
    By DivaVocals in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 2 Apr 2012, 02:10 AM
  2. Only have % show up in specials, not .99
    By JEKB in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 11 Sep 2010, 09:23 PM
  3. My large images do not show, only thumbnails...
    By z3n in forum General Questions
    Replies: 2
    Last Post: 3 Mar 2009, 10:43 AM
  4. All Products Listing only with Specials???
    By Under pressure in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Feb 2008, 11:52 PM
  5. Subcategory images only show 1 per line?
    By digitalhalo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jul 2007, 09:19 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