English 中文(简体)
Magento don t
原标题:Magento doesn t show all the categories in admin

我们的玉米储存在另一个类别(子类)。 我们的问题是,当我们进入行政管理机构管理左边树类的类型时,我们的一些子类与左边的加(+)一对正确看待,但当我们试图扩大马亨托型树群时,我们却没有任何东西。

The ajax call point to this url:

指数.php/admin/catalog_ category/categoriesJson/key/09b218741dce69171825fdbf4954855d/?isAjax=true

它返回了一个空洞的阵列,没有留下任何错误。 前线正确显示所有类别。

Magento edition 1.4.2.1

任何想法?

最佳回答

在阅读了Joseph 回答一 之后,试图寻找酸ata中的错误,并证明我的树木中的所有类别都属于1或2级,但表面上有水平的类别除外。 7. 基本生活 奇怪的是,第7级是这些类别的正确程度,即认为问题在于Magento找到一个具有第2级的类别,而它引导儿童生育第7级,并且不承认这些类别为父亲类别的儿童。

我将儿童人数改变为2人,一切似乎都可行。

为什么我的树中的所有类别都达到1级? i 不知道......

问题回答

页: 1

页: 1

UPDATE catalog_category_entity SET children_count =
(SELECT COUNT(*) FROM
(SELECT * FROM catalog_category_entity) AS table2
WHERE path LIKE
CONCAT(catalog_category_entity.path,"/%"));

Did you create the categories programmatically (as opposed to using the admin interface)? As is often the case in Magento, when some value is missing or incorrect in the database, entries may not show up at all. If this is the case, please take a look at a "good" category record in the database and make sure that the missing categories follow the correct conventions.

希望帮助!

Thanks, Joe

在我的案件中,我进口了所有类别和配量,作为在树中的位置。 也许那是它所需要的,因为把所有类别划为2级的工作是美丽的,使我的树木保持原样。

法典 我在确定所有级别为2级后,错误地认为:


    foreach ($categories as $category) {
        $category = $category->load($category->getId());

        $level = $category->getLevel();

        if($level > 2) {
            $category->setLevel(2);
            $category->save();
        }

    }

For the mentioned cases, this query could have helped:

select c.entity_id cid, p.entity_id pid
from 
  catalog_category_entity c
  inner join catalog_category_entity p on c.parent_id = p.entity_id
where c.level != p.level+1

不过,我没有帮助我了解我的类别。





相关问题
Django - update a model won t delete the old FileField

I am implementing an application with django, which has a model with a FileField: class Slideshow(models.Model): name = models.CharField(max_length=30,unique=True) thumbnail = models....

SQL Server 2005 DBA Learning Resource

So I have some experience with Microsoft Access, building database apps for people, vba, etc for different folks at work....different divisions. And I have actually learned a lot in that realm......

using properties in Django Admin

I have a model with field defined as p = models.DecimalField(max_digits=12, decimal_places=6) But the decimal_places=6 is only for internal accuracy. I only want 2 decimal_places to show up in the ...

Magento product images new option

Hey guys, how do i add one more option to product image list? like Exclude & Remove checkboxes

App Engine Authentication Error

I have an app hosted by google app engine, and I am having trouble with authentication. When I login using my admin account and try to access the admin page or members pages, I just get a blank ...

热门标签