Jump to content

Change Layered navigation block to show only new products


Panther.software

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*}
Link to comment
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
×
×
  • Create New...