Magento:捆绑选项容器“container2”空的

发布于 2024-12-22 03:58:10 字数 313 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自我难过 2024-12-29 03:58:10

事实证明,发生此错误的原因是这些捆绑产品所属的属性集不再具有“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文