Jump to content

New Products and New Arrivals numbers of products?


Recommended Posts

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 by ALEXCNX (see edit history)
Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

 

 

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

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...