[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.
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’
- For Prestashop 1.6, go to Preferences > Products, change Number of days for which the product is considered ‘new’
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.
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.
Categories
- E-commerce (30)
- B2B E-commerce (3)
- E-Commerce Trends (2)
- Ecommerce Tips and Advice (8)
- Merchants (3)
- Social, SEO & Marketing (8)
- Success Stories (2)
- Mobile Native Web App (1)
- Prestashop (97)
- Admin setup & manage Store (18)
- B2B commerce (7)
- Customize your online store (29)
- Developement (10)
- Dropshipping (1)
- Fix Errors (1)
- Improve Conversion rate, Sales (9)
- Improve customer service (13)
- Marketing & Promotions (7)
- Performance & Security (6)
- Prestashop modules (15)
- Prestashop Templates (7)
- Promote Products (5)
- SEO & Increase Traffic (12)
- Wordpress (1)
- Wordpress Mobile (1)
Popular Posts
-
[Prestashop help] How to delete an Order in PrestaShop?
Prestashop does not have a function which allow to remove Test orders or OLD orders, but you can manual remove…
-
How to setting Prestashop Invoice Number for PDF without a module?
In default, Prestashop create an invoice PDF filename, invoice number… with format: #IN000001, #IN000002… if you want change this formatting, you can…
Leave a reply
You must be logged in to post a comment.