Results 1 to 5 of 5
  1. #1
    Join Date
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Remove gift certificates from bestsellers list?

    Is there an easy way to remove gift certificates from the bestsellers list?

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

    Default Re: Remove gift certificates from bestsellers list?

    If all of your Gift Certificates use the same master_categories_id you could use that to filter out products ...
    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
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Remove gift certificates from bestsellers list?

    Hmm… Thank you. Can you give me a bit more direction on how to do this filtering?

    If it's complicated and involves any coding, I will probably just prefer to ignore it!

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

    Default Re: Remove gift certificates from bestsellers list?

    To do this you would need to customize the SQL statements Best Sellers sidebox using your templates and overrides ...

    The original files are in:
    /includes/modules/sideboxes/best_sellers.php
    /includes/templates/templates_default/sideboxes/tpl_best_sellers.php

    and copy them to your templates and overrides directory:
    /includes/modules/sideboxes/your_template_dir/best_sellers.php
    /includes/templates/your_template_dir/sideboxes/tpl_best_sellers.php

    then change your file:
    /includes/modules/sideboxes/your_template_dir/best_sellers.php

    to include the extra code on the SELECT statements in the WHERE clause for:
    p.master_categories_id != XX

    where the XX would be the categories_id for the Master Category that the Gift Certificates belong to ...
    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
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Remove gift certificates from bestsellers list?

    Thank you! :)

 

 

Similar Threads

  1. Can I prevent Gift Certificates from being bought with Gift Certificates?
    By Brianwocky in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 21 Dec 2010, 07:11 PM
  2. remove gift certificates from homepage
    By pageblair in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Mar 2010, 02:40 AM
  3. gift certificates--how to remove from account?
    By DarkAngel in forum General Questions
    Replies: 2
    Last Post: 18 Dec 2009, 12:55 AM
  4. Remove Gift Certificates from New Products?
    By buzzville in forum Customization from the Admin
    Replies: 4
    Last Post: 30 Jun 2006, 08:48 PM

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