[Prestashop help] How to modify products in New product page of Prestashop?

New products page is a default page in Prestashop’s core which display products marked as NEW. You can go to this page from Footer of Classic theme.

new-products-page-2

Or you can directly go to new-products controller with this URL: http://your-prestashop-store.com/index.php?controller=new-products

How to display a product on new-products page?

Prestashop get products that was added since 20 days ago, sort by date_added from newest to oldest and list them in new-products page. Also you can change this duration (20 days) with following:

  • For prestashop 1.7: go to Shop Parameters > Product Settings, change Number of days for which the product is considered ‘new’

new-products-page-3

How to modify products, layout, style of New-products page?

Products is listing on a new-products page based on the method: Product::getNewProducts

Step 1: Go to classes\Product.php, find method function getNewProducts

You can view source code for query products that list in new-products page at there.

new-products-page-4

Step 2: Go to it’s template fie (*.tpl)

  • For Prestashop 1.7: go to PRESTASHOP_ROOT\themes\YOUR_THEME\templates\catalog\listing\new-products.tpl
  • For Prestashop 1.6: Template file is in PRESTASHOP_ROOT\themes\YOUR_THEME\new-products.tpl

You can use Smarty language to modify *.tpl template file if you need insert, change HTML tags for customize layout.

Related Articles

Leave a reply

You must be logged in to post a comment.