ALEXCNX Posted June 19, 2015 Share Posted June 19, 2015 (edited) Hi, It seems number of new products being displayed on the homepage under the New Arrival Tab is the same as the number being displayed on the New Products sidebox, which number can be modified under module > New products block. Is there any way to display different numbers, say 12 under New Arrival Tab and 3 under New Products sidebox? Thanks Edited June 19, 2015 by ALEXCNX (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 19, 2015 Share Posted June 19, 2015 Not by default, you might want to modify this method private function getNewProducts() { if (!Configuration::get('NEW_PRODUCTS_NBR')) return; $newProducts = false; if (Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) $newProducts = Product::getNewProducts((int) $this->context->language->id, 0, (int)Configuration::get('NEW_PRODUCTS_NBR')); if (!$newProducts && Configuration::get('PS_BLOCK_NEWPRODUCTS_DISPLAY')) return; return $newProducts; } Depending on the hook you call it from, or simply clone it and use one with the center, one with the side block the file is blocknewproducts.php 1 Link to comment Share on other sites More sharing options...
ALEXCNX Posted June 19, 2015 Author Share Posted June 19, 2015 Depending on the hook you call it from, or simply clone it and use one with the center, one with the side block Thanks for your reply. My php isn't too good. Could you please walk me through creating this? Right now the New products display under the New Arrivals tab and in the left column under New Products Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now