Jump to content

Search the Community

Showing results for tags 'catégories'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


  1. "Featured Categories on Home Page" module (hook 'displayHome'): Header + additional description (multi-languages) Displays images of the Categories Dynamic counter of active products in the category Counter of "selected categories" Compatible with PrestaShop 1.7 - 8 Language versions: EN (PL and soon more languages...) Screen: === mkd_categories_homepage.zip
  2. Advanced Search Filter Pro Advanced Search Filter Pro most powerful and functional filter for PrestaShop so far. With the ability to search by filter, on all pages with the ability to use custom filters. Demo PS 1.7: Demo Backoffice Demo Front Office Demo PS 8: Demo Backoffice Demo Front Office Login: [email protected] Password: demodemo Buy link: https://addons.prestashop.com/de/suche-filter/89348-prestapro-filter.html Features: Ability to search categories and manufacturers. Option to specify custom search fields placeholder. Option to specify custom root category name. Allow excluding categories from product search. Allow specifying category depth limit. WidgetInterface to make possible attaching Presta Search to any hook. New configuration settings for customizing search results preview. More customization options for search results preview. A huge number of options Search by category Search by product Search by manufacturers Result of search on a separate page The ability to sort search results on a separate page. Compatibility: PrestaShop 1.7 We have collected the best of Advanced Presta Search Pro and many wishes of our customers and now provide Advanced Search Filter Pro. Advanced Search Filter Pro: Preset filters. Own search algorithm. Built-in search in the filter, an absolutely unique option that is not found anywhere else. The ability to display the filter on all pages, not just on the main page. Ability to exclude filters on different pages, categories The ability to use custom filters. The ability to use a separate filter type for numeric values. The ability to limit search results. Integration with many other modules created by Prestapro Full support for PrestaShop 1.7.0 and higher. Home Page filter. High speed of work. Mobile version of the filter. Coming soon: the ability to display a datepicker for attributes, like on booking. Levinstein algorithm support. Advanced Search Filter Pro Module is compatible with all modules developed by Prestapro and you can also order development for your store or customization.
  3. Hi, I recently faced an issue where my category IDs had very large numbers (at the edge of BIGINT). I managed to change the DB tables structure so they allow BIGINT instead of INT values for category ID and parent category ID. This brought me a step further and some categories with high ID values were imported properly. Now I'm facing an issue with subcategories since those have parent categories with very large values assigned to them and this time changing the DB structure to BIGINT doesn't help (I've changed BIGING in all ps_category* tables for id_category and id_parent to BIGINT). Here's an example of faulty import Rough translation: Dresses (ID: 100007) can't be saved Attribute Category->id_parent is not correct Value of parent ID in this case is 89538759973248595 Keeping IDs like in the input file (with big values) is mandatory since it allows maintaining sort of automation for the future updates thus I'm enforcing values as they are in input file instead of assigning them by prestashop. Is there any kind of parent ID value check apart of DB level which could prevent from import processing successfully? I'm running PS v8.1.3
  4. Revolutionize content generation using the power of AI. AI Engine (ChatGPT) is a great tool that effortlessly generates high-quality content for your store pages. Produce highly personalized content for your products, categories, and CMS pages using prompts. To know more about the module, please visit the link. Key Features 1. Save Time and Effort AI Engine (ChatGPT) extension lets you create compelling content for you online store, eliminating the need of adding the content manually. 2. Generate Product Descriptions Our module enables you to create unique and SEO friendly short and long descriptions for your products based on prompts. 3. Create Descriptions for Category Pages Automatically generate catchy descriptions for your categories with just a few clicks. Enhance your category pages with well-crafted descriptions, improving the SEO performance of your store. 4. Content Generation for CMS Pages Quickly generate content for your CMS pages in just a few clicks. 5. Auto-add Metadata Increase search engine rankings and drive traffic to your online store by automatically adding optimized meta tags to your product, category, and CMS pages. 6. Prompts for Content Generation AI Engine (ChatGPT) has 23 built-in prompts to generate SEO friendly, high-quality, and compelling content in your PrestaShop store. Easily create highly relevant content precisely tailored to your business needs using custom prompts. 7. OpenAI Models Supported Connect your PrestaShop store with GPT-3, GPT-3.5, or GPT-4 to auto-generate content on the go. 8. Advanced Parameters Fine-tune the model’s AI responses with parameters like frequency penalty, presence penalty, temperature, and Top P.
  5. Hello, I have a module where I have a form with which I can choose a category. Is it possible to have multiple categories selected ? Like, if I choose a subcategory, parents categories will be automatically checked too. Currently, I can only choose one category from the CategoryChoiceTreeType field. Does it have a parameter or anything like this to make it work ? Tom.
  6. Bonjour, Je voudrais créer des pages pour mon site mes je suis dans l'incapacité de les prévisualiser, idem pour les catégories. Je peux les créer sans soucis mais à chaque prévisualisation voici l'erreur que j'obtient :
  7. Hello, can anyone help me out.....I need to: 1/ Get sorting of the categories in the faceted search filter by ID. At this moment I assume the sorting is default by NAME. 2/ I need to set up the new category ID for some already existing categories. Should I rename the ID of existing category in the database or is there any other way? In advance thanks for your feedback.
  8. Hi, I'm using prestashop 1.7 with a custom theme buyed on the market, there's a way to show subcategories when i click on some categories? At the moment it show only the products inside the category and not the subcategories like the previous version of prestashop. Can someone help me please? Thanks
  9. Hello, I've a question about the category management in a multistore enviroment. I have several categories (about 500) with a very big and complex treeview. I have several store, every one can select wich categories should use and eventually modify his treeview. But every times a store edits a category (status visibile/not visibile or parent category) the change is reflected in every store of the environment. A store can only edit Title and description without having impact on other stores. In the db in fact there is only one - simple - table called "category" without any reference to shop id. Is there a way to avoid this? I hope to have been clear
  10. Hi everyone! I'm trying to display the number of products near the category name in the left sidebar using the module Category Tree. Here is an example of what i would like to obtain: • Category (50) - - Subcategory (27) - - Subcategory (3) - - Subcategory (12) - - Subcategory (8) I'm using the code found here https://blog.prestatuts.com/show-number-of-products-next-to-each-category-in-category-tree-menu/ But i'm facing two problems: the main category shows 0 products but I would like to show the sum of all products in subcategories, this is what I got: • Category (0) - - Subcategory (27) - - Subcategory (3) - - Subcategory (12) - - Subcategory (8) The worst thing is that when the code is implemented the loading of the category page becomes extremely slow, like 20 seconds everytime. This is the edited file modules/ps_categorytree/ps_categorytree.php <?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <[email protected]> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ if (!defined('_PS_VERSION_')) { exit; } use PrestaShop\PrestaShop\Core\Module\WidgetInterface; class Ps_CategoryTree extends Module implements WidgetInterface { /** * @var string Name of the module running on PS 1.6.x. Used for data migration. */ const PS_16_EQUIVALENT_MODULE = 'blockcategories'; public function __construct() { $this->name = 'ps_categorytree'; $this->tab = 'front_office_features'; $this->version = '2.0.2'; $this->author = 'PrestaShop'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->getTranslator()->trans('Category tree links', [], 'Modules.Categorytree.Admin'); $this->description = $this->getTranslator()->trans('Help navigation on your store, show your visitors current category and subcategories.', [], 'Modules.Categorytree.Admin'); $this->ps_versions_compliancy = ['min' => '1.7.1.0', 'max' => _PS_VERSION_]; } public function install() { // If the PS 1.6 module wasn't here, set the default values if (!$this->uninstallPrestaShop16Module()) { Configuration::updateValue('BLOCK_CATEG_MAX_DEPTH', 4); Configuration::updateValue('BLOCK_CATEG_ROOT_CATEGORY', 1); } return parent::install() && $this->registerHook('displayLeftColumn') ; } /** * Migrate data from 1.6 equivalent module (if applicable), then uninstall */ public function uninstallPrestaShop16Module() { if (!Module::isInstalled(self::PS_16_EQUIVALENT_MODULE)) { return false; } $oldModule = Module::getInstanceByName(self::PS_16_EQUIVALENT_MODULE); if ($oldModule) { // This closure calls the parent class to prevent data to be erased // It allows the new module to be configured without migration $parentUninstallClosure = function () { return parent::uninstall(); }; $parentUninstallClosure = $parentUninstallClosure->bindTo($oldModule, get_class($oldModule)); $parentUninstallClosure(); } return true; } public function uninstall() { if (!parent::uninstall() || !Configuration::deleteByName('BLOCK_CATEG_MAX_DEPTH') || !Configuration::deleteByName('BLOCK_CATEG_ROOT_CATEGORY')) { return false; } return true; } public function getContent() { $output = ''; if (Tools::isSubmit('submitBlockCategories')) { $maxDepth = (int) (Tools::getValue('BLOCK_CATEG_MAX_DEPTH')); if ($maxDepth < 0) { $output .= $this->displayError($this->getTranslator()->trans('Maximum depth: Invalid number.', [], 'Admin.Notifications.Error')); } else { Configuration::updateValue('BLOCK_CATEG_MAX_DEPTH', (int) $maxDepth); Configuration::updateValue('BLOCK_CATEG_SORT_WAY', Tools::getValue('BLOCK_CATEG_SORT_WAY')); Configuration::updateValue('BLOCK_CATEG_SORT', Tools::getValue('BLOCK_CATEG_SORT')); Configuration::updateValue('BLOCK_CATEG_ROOT_CATEGORY', Tools::getValue('BLOCK_CATEG_ROOT_CATEGORY')); //$this->_clearBlockcategoriesCache(); Tools::redirectAdmin(AdminController::$currentIndex . '&configure=' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules') . '&conf=6'); } } return $output . $this->renderForm(); } private function getCategories($category) { $range = ''; $maxdepth = Configuration::get('BLOCK_CATEG_MAX_DEPTH'); if (Validate::isLoadedObject($category)) { if ($maxdepth > 0) { $maxdepth += $category->level_depth; } $range = 'AND nleft >= ' . (int) $category->nleft . ' AND nright <= ' . (int) $category->nright; } $resultIds = []; $resultParents = []; $result = Db::getInstance((bool) _PS_USE_SQL_SLAVE_)->executeS(' SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite FROM `' . _DB_PREFIX_ . 'category` c INNER JOIN `' . _DB_PREFIX_ . 'category_lang` cl ON (c.`id_category` = cl.`id_category` AND cl.`id_lang` = ' . (int) $this->context->language->id . Shop::addSqlRestrictionOnLang('cl') . ') INNER JOIN `' . _DB_PREFIX_ . 'category_shop` cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = ' . (int) $this->context->shop->id . ') WHERE (c.`active` = 1 OR c.`id_category` = ' . (int) Configuration::get('PS_HOME_CATEGORY') . ') AND c.`id_category` != ' . (int) Configuration::get('PS_ROOT_CATEGORY') . ' ' . ((int) $maxdepth != 0 ? ' AND `level_depth` <= ' . (int) $maxdepth : '') . ' ' . $range . ' AND c.id_category IN ( SELECT id_category FROM `' . _DB_PREFIX_ . 'category_group` WHERE `id_group` IN (' . pSQL(implode(', ', Customer::getGroupsStatic((int) $this->context->customer->id))) . ') ) ORDER BY `level_depth` ASC, ' . (Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'cs.`position`') . ' ' . (Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC')); foreach ($result as &$row) { $resultParents[$row['id_parent']][] = &$row; $resultIds[$row['id_category']] = &$row; } return $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null)); } public function getTree($resultParents, $resultIds, $maxDepth, $id_category = null, $currentDepth = 0) { if (is_null($id_category)) { $id_category = $this->context->shop->getCategory(); } $children = []; if (isset($resultParents[$id_category]) && count($resultParents[$id_category]) && ($maxDepth == 0 || $currentDepth < $maxDepth)) { foreach ($resultParents[$id_category] as $subcat) { $children[] = $this->getTree($resultParents, $resultIds, $maxDepth, $subcat['id_category'], $currentDepth + 1); } } if (isset($resultIds[$id_category])) { $link = $this->context->link->getCategoryLink($id_category, $resultIds[$id_category]['link_rewrite']); $name = $resultIds[$id_category]['name']; $desc = $resultIds[$id_category]['description']; } else { $link = $name = $desc = ''; } return [ 'id' => $id_category, 'link' => $link, 'name' => $name, 'desc' => $desc, 'children' => $children, ]; } public function renderForm() { $fields_form = [ 'form' => [ 'legend' => [ 'title' => $this->getTranslator()->trans('Settings', [], 'Admin.Global'), 'icon' => 'icon-cogs', ], 'input' => [ [ 'type' => 'radio', 'label' => $this->getTranslator()->trans('Category root', [], 'Modules.Categorytree.Admin'), 'name' => 'BLOCK_CATEG_ROOT_CATEGORY', 'hint' => $this->getTranslator()->trans('Select which category is displayed in the block. The current category is the one the visitor is currently browsing.', [], 'Modules.Categorytree.Admin'), 'values' => [ [ 'id' => 'home', 'value' => 0, 'label' => $this->getTranslator()->trans('Home category', [], 'Modules.Categorytree.Admin'), ], [ 'id' => 'current', 'value' => 1, 'label' => $this->getTranslator()->trans('Current category', [], 'Modules.Categorytree.Admin'), ], [ 'id' => 'parent', 'value' => 2, 'label' => $this->getTranslator()->trans('Parent category', [], 'Modules.Categorytree.Admin'), ], [ 'id' => 'current_parent', 'value' => 3, 'label' => $this->getTranslator()->trans('Current category, unless it has no subcategories, in which case the parent category of the current category is used', [], 'Modules.Categorytree.Admin'), ], ], ], [ 'type' => 'text', 'label' => $this->getTranslator()->trans('Maximum depth', [], 'Modules.Categorytree.Admin'), 'name' => 'BLOCK_CATEG_MAX_DEPTH', 'desc' => $this->getTranslator()->trans('Set the maximum depth of category sublevels displayed in this block (0 = infinite).', [], 'Modules.Categorytree.Admin'), ], [ 'type' => 'radio', 'label' => $this->getTranslator()->trans('Sort', [], 'Admin.Actions'), 'name' => 'BLOCK_CATEG_SORT', 'values' => [ [ 'id' => 'name', 'value' => 1, 'label' => $this->getTranslator()->trans('By name', [], 'Admin.Global'), ], [ 'id' => 'position', 'value' => 0, 'label' => $this->getTranslator()->trans('By position', [], 'Admin.Global'), ], ], ], [ 'type' => 'radio', 'label' => $this->getTranslator()->trans('Sort order', [], 'Admin.Actions'), 'name' => 'BLOCK_CATEG_SORT_WAY', 'values' => [ [ 'id' => 'name', 'value' => 1, 'label' => $this->getTranslator()->trans('Descending', [], 'Admin.Global'), ], [ 'id' => 'position', 'value' => 0, 'label' => $this->getTranslator()->trans('Ascending', [], 'Admin.Global'), ], ], ], ], 'submit' => [ 'title' => $this->getTranslator()->trans('Save', [], 'Admin.Actions'), ], ], ]; $helper = new HelperForm(); $helper->show_toolbar = false; $helper->table = $this->table; $helper->submit_action = 'submitBlockCategories'; $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->tpl_vars = [ 'fields_value' => $this->getConfigFieldsValues(), ]; return $helper->generateForm([$fields_form]); } public function getConfigFieldsValues() { return [ 'BLOCK_CATEG_MAX_DEPTH' => Tools::getValue('BLOCK_CATEG_MAX_DEPTH', Configuration::get('BLOCK_CATEG_MAX_DEPTH')), 'BLOCK_CATEG_SORT_WAY' => Tools::getValue('BLOCK_CATEG_SORT_WAY', Configuration::get('BLOCK_CATEG_SORT_WAY')), 'BLOCK_CATEG_SORT' => Tools::getValue('BLOCK_CATEG_SORT', Configuration::get('BLOCK_CATEG_SORT')), 'BLOCK_CATEG_ROOT_CATEGORY' => Tools::getValue('BLOCK_CATEG_ROOT_CATEGORY', Configuration::get('BLOCK_CATEG_ROOT_CATEGORY')), ]; } public function setLastVisitedCategory() { if (method_exists($this->context->controller, 'getCategory') && ($category = $this->context->controller->getCategory())) { $this->context->cookie->last_visited_category = $category->id; } elseif (method_exists($this->context->controller, 'getProduct') && ($product = $this->context->controller->getProduct())) { if (!isset($this->context->cookie->last_visited_category) || !Product::idIsOnCategoryId($product->id, [['id_category' => $this->context->cookie->last_visited_category]]) || !Category::inShopStatic($this->context->cookie->last_visited_category, $this->context->shop) ) { $this->context->cookie->last_visited_category = (int) $product->id_category_default; } } } public function renderWidget($hookName = null, array $configuration = []) { $this->setLastVisitedCategory(); $this->smarty->assign($this->getWidgetVariables($hookName, $configuration)); return $this->fetch('module:ps_categorytree/views/templates/hook/ps_categorytree.tpl'); } public function getWidgetVariables($hookName = null, array $configuration = []) { $category = new Category((int) Configuration::get('PS_HOME_CATEGORY'), $this->context->language->id); if (Configuration::get('BLOCK_CATEG_ROOT_CATEGORY') && isset($this->context->cookie->last_visited_category) && $this->context->cookie->last_visited_category) { $category = new Category($this->context->cookie->last_visited_category, $this->context->language->id); if (Configuration::get('BLOCK_CATEG_ROOT_CATEGORY') == 2 && !$category->is_root_category && $category->id_parent) { $category = new Category($category->id_parent, $this->context->language->id); } elseif (Configuration::get('BLOCK_CATEG_ROOT_CATEGORY') == 3 && !$category->is_root_category && !$category->getSubCategories($category->id, true)) { $category = new Category($category->id_parent, $this->context->language->id); } } $categories = $this->getCategories($category); return [ 'categories' => $categories, 'c_tree_path' => isset($categories['children']) && count($categories['children']) && method_exists($this->context->controller, 'getCategory') && ($curr_category = $this->context->controller->getCategory()) ? self::getTreePath($categories['children'], $curr_category->id) : false, 'currentCategory' => $category->id, ]; } public static function getTreePath($categories, $id, array $path = []) { foreach ($categories as $cate) { if ($cate['id'] == $id){ if(is_array($cate['children']) && count($cate['children'])) $path[] = $cate['id']; return $path; } $path[] = $cate['id']; if(is_array($cate['children']) && count($cate['children'])) { if ($result = self::getTreePath($cate['children'], $id, $path)) return $result; } array_pop($path); } return false; } public static function countProductInCat($idCategory){ $category=new Category((int)$idCategory); $id_lang=Context::getContext()->language->id; $productCount=$category->getProducts($id_lang, 1, 10000, null, null, false); return $productCount; } } And this is the edited (and overrided) file modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl {function name="categories" nodes=[] depth=0} {strip} {if $nodes|count} <ul class="category-sub-menu"> {foreach from=$nodes item=node} {assign var=category_products value=Module::getInstanceByName('ps_categorytree')->countProductInCat($node.id)} <li data-depth="{$depth}" class="{if (isset($category) && is_array($category) && isset($category.id) && $category.id==$node.id) || (isset($id_category_current) && $id_category_current==$node.id)} current_cate {/if}"> {if $depth===0} <a href="{$node.link}">{$node.name} ({count($category_products)})</a> {if $node.children} <span class="collapse-icons{if $c_tree_path && !in_array($node.id, $c_tree_path)} collapsed{/if}" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}" aria-expanded="{if $c_tree_path && in_array($node.id, $c_tree_path)}true{else}false{/if}"> <i class="fa fa-angle-down add" aria-hidden="true"></i> <i class="fa fa-angle-up remove" aria-hidden="true"></i> </span> <div class="collapse{if $c_tree_path && in_array($node.id, $c_tree_path)} show{/if}" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {else} <a class="category-sub-link" href="{$node.link}">{$node.name} ({count($category_products)})</a> {if $node.children} <span class="arrows{if $c_tree_path && !in_array($node.id, $c_tree_path)} collapsed{/if} collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}" aria-expanded="{if $c_tree_path && in_array($node.id, $c_tree_path)}true{else}false{/if}"> <i class="fa fa-angle-down add" aria-hidden="true"></i> <i class="fa fa-angle-up remove" aria-hidden="true"></i> </span> <div class="collapse{if $c_tree_path && in_array($node.id, $c_tree_path)} show{/if}" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {/if} </li> {/foreach} </ul> {/if} {/strip} {/function} {if $categories.children|count} {assign var=category_products_dva value=Module::getInstanceByName('ps_categorytree')->countProductInCat($categories.id)} <div class="block block-toggle block-categories block-links js-block-toggle"> <h5 class="block-title"><span><a href="{$categories.link nofilter}">{$categories.name} ({count($category_products_dva)})</a></span> </h5> <div class="category-top-menu block-content"> {categories nodes=$categories.children} </div> </div> {/if} If anyone can help me I would really appreciate, this is an important function for my client and I can't get what I'm doing wrong. Thank you very much!
  11. Bonjour, version 1.7.6.1 / thème de base Je souhaite afficher les catégories sur la page d’accueil avec affichage de miniature et lorsqu'on clique sur une catégorie que les sous-catégories s'affichent avec miniature également. Savez-vous comment faire? Est-ce possible depuis le BO? Merci pour votre aide.
  12. I was wondering if its possible for different stores in a Multistore Set Up can each have different Categories or do they need to be the same categories added to the main setup? If so, do I need to add all the categories in the main setup first before setting up another store? Thanks!
  13. Hi, Just moved servers and noticed that the whole website including header and footer is loading twice repeating one on top of the other, but only on the category pages. This isn't happening on any other part of the site. Does anybody have any ideas as to what might be causing this? Here's a link to a category page. If you keep scrolling you will see the whole webpage has loaded again at the bottom of the page: http://www.kidshivis.co.uk/15-sale thanks
  14. Ukazuje kategorií s miniaturu odkaz: http://www.catalogo-...p?id_product=68 blockcategoriesi.zip
  15. i have an undesired menu showing on random page in the italian version of the website, i copied the same structure from the .com version but i have this random menu showing in this page, any idea on how to fix this issue? this is the correct version in .com https://www.cosmeralda.com/en/content/29-our-interview-with-carnet-de-rencontres and this is the wrong version in .it https://www.cosmeralda.it/content/32-la-nostra-intervista-con-carnet-de-rencontres
  16. I installed an addons for bulk action ( called ba_importer v 1.1.24), I upload an excel files with my data and create a group of products. I can set the categories' tree or manually add ID of main categories and associated; I tried with no luck to use the tree features (like Home/Products/etc ) and so I use all the ID of main category and all the associated. The result is a product with the correct categories setted, but with no specific price from the customer group linked to a category. I tried to edit a single product, remove all categories and set it one by one (set one, save, set one, save etc.) and then the specific price from the group linked to a categories appear to the product. Someone have a similiar issues and find a better solution? I'm thinking about make a personal php page that read and excel files and setting all the information about the product but I'm scaried to face the same problem with the specific price.
  17. Hi there, The category https://www.toptoners.com/gb/5000-kodak-inkjet-ink-cartridges redirects to https://www.toptoners.com/gb/52-Kodak-Inkjet-ink-cartridges and has Brother Toner information and displays Brother ink cartridges. It should not do this! I cannot work out why. Any suggestions on how to resolve this would be much appreciated. https://www.toptoners.com/gb/7595-HP-Tango-ink-cartridges also redirects. to https://www.toptoners.com/gb/6076-HP-Tango-ink-cartridges Thank you, Mark www.TopToners.com
  18. i want to add category items in to the breadcrump. is there any way to add it through the back office. if its not how we do it throgh the backend..?
  19. 1. Go to https://mcgroup.store/it/2-home 2.The loading of the page is slow 3. Change paginator to 2, 3 or n number 4. the loading of the page is slow This is the problem: https://calipio.com/app/play/wYOxV7ej#cRfG3egu During the loading the cpu of the server goes to 100% How can I fix it? I have just activate the cache and delete it. The site requirements are all respected. I can't solve it in any way. Please, help!
  20. Good evening, I've been trying to show the sister categories (not the daughters) on the category page for some time now, but it's impossible for me, since the method I used to do it in 1.6 no longer works for 1.7 or I can't adapt it, for Let's see if someone is able to help me, I would be infinitely grateful. Example: I have 3 categories (cat1, cat2 and cat3), if I access the cat1 category, I want to show the daughters (this is already done by default of prestashop with the subcategories) and also show the sisters in another block, that is, cat2 and cat3. The same if I enter cat2, it shows me the daughters on the one hand and cat1 and cat3 which are the sisters of the same level on the other hand. There is already a method for version 1.6, but in 1.7 the file to edit is no longer the same and that method cannot be followed. This is the topic: A greeting and thanks in advance!
  21. Bonjour, j'ai un problème avec les catégories associées en multiboutique. Lorsque je fais une modification d'un produit sur ma 2ème boutique, cela me l'enlève des sous catégories sur ma boutique mère. Je dois donc aller re-cocher les catégories associées sur la boutique mère chaque fois que je fais des modifications sur la 2ème boutique... ça prend du temps à chaque fois, et parfois on oublie de le faire... et les produits ne sont donc plus visibles sur ma boutique mère. Quelqu'un a une idée d'où peut venir ce problème, et peut être une solution à m'apporter ? Merci
  22. Hello, can I change the size of the categories on the home page
  23. Hello Everyone, We have released prestashop categories on homepage Module. The prestashop 1.7 categories on homepage allows you to display product categories on your PrestaShop homepage. Default PrestaShop doesn’t have a facility to display product categories on the PrestaShop homepage. This module helps to show all your product categories from the homepage. Customers are usually looking for product categories when they enter an e-commerce homepage. Home page category modules give customers a close look at products and give them a glimpse of how many category products are available in your store. You can display your product categories by setting the number of columns in the category. This module has multiple settings and customization options. Configuration: Module > Module Manager > Search (Classy Homepage Category Module) > Configure KEY FEATURES: Show categories as box layout Show categories as tree layout Show Sub Category 2 Different Layouts Allow change color, style, column Set Category image size With or without image Extendable from theme Show product count Fully translatable Easy to Use Lifetime Updates Compatible with any PS Theme Friendly Support Risk Free Guarantee** Installation Requirements: PHP version 7.2 or greater PrestaShop version 1.7 or greater 👇👇 DOWNLOAD MODULE FROM HERE Classy Home Category Module LIVE DEMO We are eagerly waiting to receive your feedback in the comment box below. 😃 Cheers, ClassyDevs Team
  24. BULK PRODUCT CATEGORY MOVE The objective of the module is to allow you to change products from one category to another, modify their default category, eliminate associations, make copies, among other options. Which options does the module offer? 1. Associate the products to one or more destination categories This function will allow you to associate all the products you want to one or more new categories in a massive way, without having to go product by product 2. Move the products to one or more destination categories This function will allow you to modify the categories associated with the selected products by others that you choose, thus disconnecting yourself from the source category to be associated with the selected destination category. 3. Remove linked categories from selected products With this function you can unlink all the categories you want from the massively selected products. 4. Make a copy of the product / s to a category selected by default With this function you can make copies of one or more products to a selected default category, thus maintaining its image, price, combinations, reference among other parameters. You can massively modify all the products you want and add, modify or delete their categories through a very simple and easy-to-use panel Optimize your time Thanks to this module you will be able to save a lot of time in having to manage your product catalog since you will be able to apply the different options in a massive way in all the products you want at the same time Easy to use We highly prioritize the usability of our modules, that is why in a few steps you will be able to make a series of modifications in the categories of your catalog in an optimal, simple and effective way. Simplify product searches for your customers since you can maintain a much more orderly and optimized category structure for your entire catalog. Labelgrup Networks S.L. is a Platinum Prestashop Partner, that is why we have managed to accumulate great expertise in the Prestashop world, which we want to put at your service and that of your online store. That is why if you have any questions or concerns, we will be happy to help you and advise you on all your needs. MODULE LINK: https://addons.prestashop.com/es/edicion-rapida/85749-asignador-masivo-de-categorias.html
  25. http://s875055527.onlinehome.fr/index.php Bonjour, j'ai besoin d'aide car mon logo d’accueil n'est plus responsive. Il ne se dépose plus sur le haut en mode téléphone. En plus, j'ai un soucis sur mes défilés de sous-catégories qui s'affichent tout en haut de la page. Que puis-je faire ?? Côté téléphone "mode responsive", je ne peux plus arriver au menu. Je n'ai rien touché aux fichiers depuis un moment et j'ai revérifié toutes mes manipes. Si qqln peut m'aider, c'est très urgent ! Merci d'avance
×
×
  • Create New...