[email protected] Posted July 16, 2016 Share Posted July 16, 2016 hello to you all i need a script idea which will hide specific categorie (and all its sub categories) from tha newproducts block/tab i was thinking about an "if" statement but couldn't provide it. please your help thank you Link to comment Share on other sites More sharing options...
exadra37 Posted July 17, 2016 Share Posted July 17, 2016 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 More sharing options...
[email protected] Posted July 17, 2016 Author Share Posted July 17, 2016 (edited) 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 July 19, 2016 by [email protected] (see edit history) 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