If this is your first visit, check our documentation. To post, register or login.
Forums / Customization from the Admin / Excluding free items from Best Sellers

Excluding free items from Best Sellers

Started by meljen on 3 Aug 2012, 9:01 PM · Views: 1,322

Results 1 to 4 of 4
3 Aug 2012, 9:01 PM
#1
meljen avatar

meljen

Zen Follower

Join Date:
Apr 2012
Posts:
127
Plugin Contributions:
0

Excluding free items from Best Sellers

Is there a way to exclude free products from the Best Sellers sidebox?

*Sorry if I posted this in the wrong section!

4 Aug 2012, 1:41 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Excluding free items from Best Sellers

You could customize the sidebox for:
/includes/modules/sideboxes/best_sellers.php

using your templates and overrides for:
/includes/modules/sideboxes/your_template_dir/best_sellers.php

and adding to the two select statements to the WHERE:

and p.products_price_sorter > 0

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!

29 Nov 2012, 2:55 AM
#3
meljen avatar

meljen

Zen Follower

Join Date:
Apr 2012
Posts:
127
Plugin Contributions:
0

Re: Excluding free items from Best Sellers

This thread is a bit old, and I thank you for hopping in with an answer. I was confused at first (not very good at combing through php code) - so I had decided to let it sit a while.

Well I've been making changes to my shop today and decided to give it a try. Finally figured it out, and it works like a charm! Thank you!

29 Nov 2012, 2:57 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Excluding free items from Best Sellers

Thanks for the update that this worked for you ... :smile:

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!