Magento - 目录 - 没有产品显示,除非?用来
Magento - Catalog - No products show unless ? is used
Magento 1.9
我创建了自定义 url 重写。
category/tripods => catalog/category/view/id/809
我已经检查过,以上两个都一样。
这是站点范围的,与所有类别部分相同。
当我输入 my-site.com/category/tripods
没有产品显示时,我确实看到了分层导航/向下钻取属性和类别。
当我输入 my-site.com/category/tripods?
页面按预期工作。
那个?正在触发我没有找到的东西。
Mage_Catalog_Model_Category Object
(
[_eventPrefix:protected] => catalog_category
[_eventObject:protected] => category
[_cacheTag:protected] => catalog_category
[_useFlatResource:protected] =>
[_designAttributes:Mage_Catalog_Model_Category:private] => Array
(
[0] => custom_design
[1] => custom_design_from
[2] => custom_design_to
[3] => page_layout
[4] => custom_layout_update
[5] => custom_apply_to_products
)
[_treeModel:protected] =>
[_urlModel:protected] =>
[_defaultValues:protected] => Array
(
[url_path] => catalog/tripods
)
[_storeValuesFlags:protected] => Array
(
[url_path] => 1
)
[_lockedAttributes:protected] => Array
(
)
[_isDeleteable:protected] => 1
[_isReadonly:protected] =>
[_resourceName:protected] => catalog/category
[_resource:protected] =>
[_resourceCollectionName:protected] => catalog/category_collection
[_dataSaveAllowed:protected] => 1
[_isObjectNew:protected] =>
[_data:protected] => Array
(
[store_id] => 1
[entity_id] => 809
[entity_type_id] => 3
[attribute_set_id] => 3
[parent_id] => 3
[created_at] => 2014-12-17T17:57:38-08:00
[updated_at] => 2015-04-27 19:07:29
[path] => 1/2/3/809
[position] => 3
[level] => 2
[children_count] => 13
[name] => Tripods
[url_key] => tripods
[meta_title] =>
[display_mode] => PRODUCTS
[custom_design] =>
[page_layout] => home
[url_path] => catalog-33/tripods.html
[is_active] => 1
[include_in_menu] => 1
[landing_page] =>
[is_anchor] => 1
[custom_use_parent_settings] => 1
[custom_apply_to_products] => 0
[description] =>
[meta_keywords] =>
[meta_description] =>
[custom_layout_update] =>
[available_sort_by] =>
[custom_design_from] =>
[custom_design_to] =>
[filter_price_range] =>
[path_ids] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 809
)
)
[_hasDataChanges:protected] => 1
[_origData:protected] => Array
(
[store_id] => 1
[entity_id] => 809
[entity_type_id] => 3
[attribute_set_id] => 3
[parent_id] => 3
[created_at] => 2014-12-17T17:57:38-08:00
[updated_at] => 2015-04-27 19:07:29
[path] => 1/2/3/809
[position] => 3
[level] => 2
[children_count] => 13
[name] => Tripods
[url_key] => tripods
[meta_title] =>
[display_mode] => PRODUCTS
[custom_design] =>
[page_layout] => home
[url_path] => catalog-33/tripods.html
[is_active] => 1
[include_in_menu] => 1
[landing_page] =>
[is_anchor] => 1
[custom_use_parent_settings] => 1
[custom_apply_to_products] => 0
[description] =>
[meta_keywords] =>
[meta_description] =>
[custom_layout_update] =>
[available_sort_by] =>
[custom_design_from] =>
[custom_design_to] =>
[filter_price_range] =>
)
[_idFieldName:protected] => entity_id
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
我从 system > configuration > catalog > search engine optimizations
的类别中删除了 .html
清除缓存并重新编制索引。
[url_path] => catalog-33/tripods.html
仍然显示 .html 以及为什么 -33 ?
有没有人运行参与其中或有任何建议?
我不太确定,但 Magneto(磁) 需要系统配置
这可能没有多大直接帮助,但可能是一个很好的关于忘记代码的提醒。
Teddy Dong 的建议让我回到了我通过 MagePsycho Extensions 打开 "Easy Template Path Hints" 的系统配置。然后我可以看到所有块,我以为我的自定义 2column-calalog.phtml 模板没有处理,但它是。这让我回顾了那个文件中的所有代码。在那里,我发现旧代码会根据查询字符串显示静态块,我删除了它,现在它按预期工作了。
Magento 1.9
我创建了自定义 url 重写。
category/tripods => catalog/category/view/id/809
我已经检查过,以上两个都一样。 这是站点范围的,与所有类别部分相同。
当我输入 my-site.com/category/tripods
没有产品显示时,我确实看到了分层导航/向下钻取属性和类别。
当我输入 my-site.com/category/tripods?
页面按预期工作。
那个?正在触发我没有找到的东西。
Mage_Catalog_Model_Category Object
(
[_eventPrefix:protected] => catalog_category
[_eventObject:protected] => category
[_cacheTag:protected] => catalog_category
[_useFlatResource:protected] =>
[_designAttributes:Mage_Catalog_Model_Category:private] => Array
(
[0] => custom_design
[1] => custom_design_from
[2] => custom_design_to
[3] => page_layout
[4] => custom_layout_update
[5] => custom_apply_to_products
)
[_treeModel:protected] =>
[_urlModel:protected] =>
[_defaultValues:protected] => Array
(
[url_path] => catalog/tripods
)
[_storeValuesFlags:protected] => Array
(
[url_path] => 1
)
[_lockedAttributes:protected] => Array
(
)
[_isDeleteable:protected] => 1
[_isReadonly:protected] =>
[_resourceName:protected] => catalog/category
[_resource:protected] =>
[_resourceCollectionName:protected] => catalog/category_collection
[_dataSaveAllowed:protected] => 1
[_isObjectNew:protected] =>
[_data:protected] => Array
(
[store_id] => 1
[entity_id] => 809
[entity_type_id] => 3
[attribute_set_id] => 3
[parent_id] => 3
[created_at] => 2014-12-17T17:57:38-08:00
[updated_at] => 2015-04-27 19:07:29
[path] => 1/2/3/809
[position] => 3
[level] => 2
[children_count] => 13
[name] => Tripods
[url_key] => tripods
[meta_title] =>
[display_mode] => PRODUCTS
[custom_design] =>
[page_layout] => home
[url_path] => catalog-33/tripods.html
[is_active] => 1
[include_in_menu] => 1
[landing_page] =>
[is_anchor] => 1
[custom_use_parent_settings] => 1
[custom_apply_to_products] => 0
[description] =>
[meta_keywords] =>
[meta_description] =>
[custom_layout_update] =>
[available_sort_by] =>
[custom_design_from] =>
[custom_design_to] =>
[filter_price_range] =>
[path_ids] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 809
)
)
[_hasDataChanges:protected] => 1
[_origData:protected] => Array
(
[store_id] => 1
[entity_id] => 809
[entity_type_id] => 3
[attribute_set_id] => 3
[parent_id] => 3
[created_at] => 2014-12-17T17:57:38-08:00
[updated_at] => 2015-04-27 19:07:29
[path] => 1/2/3/809
[position] => 3
[level] => 2
[children_count] => 13
[name] => Tripods
[url_key] => tripods
[meta_title] =>
[display_mode] => PRODUCTS
[custom_design] =>
[page_layout] => home
[url_path] => catalog-33/tripods.html
[is_active] => 1
[include_in_menu] => 1
[landing_page] =>
[is_anchor] => 1
[custom_use_parent_settings] => 1
[custom_apply_to_products] => 0
[description] =>
[meta_keywords] =>
[meta_description] =>
[custom_layout_update] =>
[available_sort_by] =>
[custom_design_from] =>
[custom_design_to] =>
[filter_price_range] =>
)
[_idFieldName:protected] => entity_id
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
我从 system > configuration > catalog > search engine optimizations
的类别中删除了 .html
清除缓存并重新编制索引。
[url_path] => catalog-33/tripods.html
仍然显示 .html 以及为什么 -33 ?
有没有人运行参与其中或有任何建议?
我不太确定,但 Magneto(磁) 需要系统配置
这可能没有多大直接帮助,但可能是一个很好的关于忘记代码的提醒。
Teddy Dong 的建议让我回到了我通过 MagePsycho Extensions 打开 "Easy Template Path Hints" 的系统配置。然后我可以看到所有块,我以为我的自定义 2column-calalog.phtml 模板没有处理,但它是。这让我回顾了那个文件中的所有代码。在那里,我发现旧代码会根据查询字符串显示静态块,我删除了它,现在它按预期工作了。