Magento:捆绑选项容器“container2”空的
我正在使用 Magento 1.5.1.0,并且我已经以编程方式添加了捆绑产品(使用自定义构建的 PHP 脚本直接添加到数据库中)。
对于大多数捆绑产品,捆绑选项在前端显示良好,但对于某些产品,代码:
$this->getChildChildHtml('container2', '', true, true)
返回空字符串。
我不知道如何解决这个问题,当我通过“管理产品”访问该产品时,捆绑选项确实显示在 Magento 管理面板中。
关于我可以尝试检查为什么未显示捆绑包选项的任何想法?
I'm Using Magento 1.5.1.0 and I have programmatically added bundle products (directly into the database with a custom built PHP script).
For most bundle products, the bundle options show fine on the frontend, but for some products, the code:
$this->getChildChildHtml('container2', '', true, true)
Returns an empty string.
I have no idea how to troubleshoot this and the bundle options do show up in Magento Admin Panel when I go to the product though Manage Products.
Any ideas as to what I could try to check why the bundle options are not being displayed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,发生此错误的原因是这些捆绑产品所属的属性集不再具有“options_container”属性,因为它不再分配有“design”属性组。
我解决了这个问题,现在一切都恢复正常了。
刚刚回答了我自己的问题,因为也许有人会遇到这个问题,我知道这让我很头疼地解决这个问题。
It turns out this error occurred because the attribute set that these bundle products belong to did no longer have the "options_container" attribute, because it did no longer have the "design" attribute group assigned to it.
I fixed that and now everything is okay again.
Just answered my own question because maybe someone would run into this problem and I know it caused me headaches to figure it out.