3
使用AJAX在类别列表中加载产品视图
我试图使用Ajaxify使用AJAX在类别列表页面中加载产品视图块。一切正常,唯一的问题是选项框(childhtml“ container1”)未正确加载。它不显示选项。 有没有人有经验,也许尝试过类似的东西?我在控制器中使用设置活动产品 $productId = (int) $this->getRequest()->getParam('product_id'); Mage::helper('catalog/product')->initProduct($productId, $this); 在渲染布局之前。 我认为这与将选项添加到catalog.xml的其他部分中的视图有关。 [...] <PRODUCT_TYPE_configurable translate="label" module="catalog"> <label>Catalog Product View (Configurable)</label> <reference name="product.info"> <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml"> <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label"> <label>Product Extra Info</label> </block> </block> </reference> <reference name="product.info.options.wrapper"> <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/> </reference> </PRODUCT_TYPE_configurable> [...] 但我不确定确切的问题是什么。 我希望有人能指出我正确的方向。 …
14
ce-1.7.0.2
ajax