Jump to content

Change Layered navigation block to show only new products


Panther.software
 Share

Recommended Posts

At the risk of making some programming errors. If you want only to display the new products from a category you could do something like this at the beginning of your product-list.php file:

{$newproducts = array()}
{foreach from=$products item=product}
    {if $product.new == 1}
	{$newproducts[] = $product}
    {/if}
{/foreach}
{assign var='products' value=$newproducts*}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More