NormundsM Posted June 2, 2016 Share Posted June 2, 2016 Hello! I have prestashop 1.6.1.0 with theme default-bootstrap. I wanted to make another product view under product category as it's possible by default. Maybe someone could advice some module which could help resolve me this need? As I'm beginner in this field then I could use already usable product (module), not write by myself those features. Thank You! Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2016 Share Posted June 3, 2016 WHat do you mean with another product view, exactly? Duplicating the current product list, or modifying it? Link to comment Share on other sites More sharing options...
NormundsM Posted June 3, 2016 Author Share Posted June 3, 2016 I want to modify products view under categories. In list view one product takes a lot of space and I want to make it more compact, so there would be shown more products at one time. At grid view there are more products, but still they takes too much place as well prestashop shows only name, not short description, which is not enough. Link to comment Share on other sites More sharing options...
NemoPS Posted June 4, 2016 Share Posted June 4, 2016 Old bug, replace the regenerateEntireNTree in category.php with this public static function regenerateEntireNtree() { $id = Context::getContext()->shop->id; $id_shop = $id ? $id: Configuration::get('PS_SHOP_DEFAULT'); $categories = Db::getInstance()->executeS(' SELECT c.`id_category`, c.`id_parent` FROM `'._DB_PREFIX_.'category` c LEFT JOIN `'._DB_PREFIX_.'category_shop` cs ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.') ORDER BY c.`id_parent`, cs.`position` ASC'); $categories_array = array(); foreach ($categories as $category) { $categories_array[$category['id_parent']]['subcategories'][] = $category['id_category']; } $n = 1; if (isset($categories_array[0]) && $categories_array[0]['subcategories']) { foreach ($categories_array[0]['subcategories'] as $subcat) { Category::_subTree($categories_array, $subcat, $n); } } } Link to comment Share on other sites More sharing options...
NemoPS Posted June 16, 2016 Share Posted June 16, 2016 Really odd, is the page not saving? Or is it just not there?If it's not there, you can add it back, just use IndexController as controller Link to comment Share on other sites More sharing options...
NormundsM Posted June 17, 2016 Author Share Posted June 17, 2016 Maybe someone could comment regarding main topic subject! Thank You! 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