Datafeedr Support Forums

Datafeedr Support Forums (
-   Tips, Tricks & Tutorials (
-   -   "Only Sale Items" (

outdoorcampingshops January 17th, 2013 01:10 PM

"Only Sale Items"
Hey Eric,

So I've been going through the forums looking for my answer and i've probably over looked it as i'm still scratching my head. I have an issue when using the sort function within a category to at least show Sale items first, if not only show sale priced items. But that still isn't happening:

I tried to set up a Sale item view but have no idea how to implement that view within the Sale Item category page.

I know you probably have the answer, I appreciate the help again.

Eric January 17th, 2013 01:59 PM


If you access that category page like this, then only products on sale will be shown:

To modify that link in your list of categories in the sidebar, change this:

[category.list before='<ul>' after='</ul>']
  <a href="[]" title="[]">[]</a>

To this:

[category.list before='<ul>' after='</ul>']
        <?php if ($category->id == 1079066) { ?>
                <a href="[]?saleprice=1-" title="[]">[]</a>
        <?php } else { ?>
                <a href="[]" title="[]">[]</a>
        <?php } ?>

Here: The Factory > Your Store > VIEWS > WIDGETS > Categories > Category list

That should do the trick.


outdoorcampingshops January 17th, 2013 02:54 PM

Perfect, thanks again!

outdoorcampingshops January 17th, 2013 02:58 PM

Eric, one more thing for the week. Within a Price filter, is there a way to have a "Sale Price" option that will filter to all products with a sale price instead of a set (50-100) price value?

Eric January 17th, 2013 03:01 PM

Yes, just use saleprice=1-
That says where sale price is greater than 1.

All times are GMT -5. The time now is 10:03 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.