Jump to content

hide categorie from new products block


Recommended Posts

Welcome to our community.

 

Please always provide your Prestashop version so that the community can help you.

 

Remember to provide also all the details relative to your problem.

 

In this case will be good to know also what Theme are you sung in the store and what Module are you using to show the New Products.

Link to comment
Share on other sites

hi exadra37,

 

the ver is 1.6.1.2 and i'm using the defult theme and also the the standars module.

in my mall (it's a milti seller site) i have seller that posts adults products and i don't want those products to be

shown in my homepage or in the newproduct block.

 

how do i hide the adults category and its sub cats?

 

tx, ravid

ps

i think i need to modify this func:

 

protected 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;
}
Edited by [email protected] (see edit history)
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...