无法在可配置中关联简单产品

发布于 2024-10-19 12:06:28 字数 381 浏览 2 评论 0原文

我从 1.4.2 升级到 1.5.0,并意识到可配置产品中的产品关联不起作用。经过几个小时的回滚和测试我还没有找到解决方案。即使我回滚到以前的版本和数据库,我也无法让它回到正轨。我尝试卸载最近安装的所有扩展,但结果相同。这个网站或多或少是基于可配置的,所以我们有点陷入困境......

不过我发现了一些细节;

  • 升级之前创建的简单产品可以与新的可配置产品和现有产品相关联。
  • 升级后制作的简单产品不能与任何可配置产品关联。
  • 当我创建一个新的可配置并与快速工具关联时,会创建新的简单产品,但没有插入到数据库表catalog_product_relation中。

Adminhtml 似乎被什么东西破坏了。我不再有线索,所以请填写要寻找的建议。

I did an upgrade from 1.4.2 to 1.5.0 and realized that the product association in a Configurable product didn't work. After hours of rollbacks and testing I haven't found a solution. Even though I did a rollback to the previous version and database I couldn't get it back on track. I've tried to uninstall all extensions we have installed lately with the same result. This site is more or less based on Configurables so we are sort of stuck...

I've found some details though;

  • Simple products created before the upgrade can be associated to a new Configurable product and existing ones.
  • Simple products made after the upgrade can’t be associated to any Configurable product.
  • When I create a new Configurable and make an association with the quick tool the new Simple product is created, but there's no insert to the database table catalog_product_relation for example.

It seems that the Adminhtml is broken by something. I have no lead any longer so please fill in with suggestions what to look for.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

七七 2024-10-26 12:06:28

几个小时后我终于找到了。 :)
我检查了服务器端代码、客户端 js 脚本,并得出结论:即使服务器端更新了,js 脚本也是相同的。当添加关联时,他们没有得到我预期的数据。
这一切都深入到可配置选项所基于的属性的设置(似乎数据库查找已更改并且属性影响了结果)。我发现升级前创建的简单产品与升级后创建的简单产品相比,数据库的结果集有所不同。
我认为 1.5 在设置方面更加挑剔,因为该属性已用于超过 500 个产品,没有任何问题。

我将该属性更改为对所有产品类型都有效,而不是强制的。现在我们可以再次创建可配置项!

I've finally found it, hours later. :)
I went through the server side code, the client js-scripts and came to the conclusion that even though the server side is updated, the js-scripts are the same. And they didn't get the data back I expected when the association was added.
It all drilled down to the settings of the attribute that the configurable option was based upon (it seems the DB lookup is changed and the attribute affected the result). I found that the result sets from the db differed when a simple product was created before the upgrade, compared to a simple product created after the upgrade.
I think 1.5 is alot more picky when it comes to the settings as this attribute has been used for more then 500 products with no problem.

I changed the attribute to be valid for all product types and not mandatory. Now we can create Configurables again!

旧情别恋 2024-10-26 12:06:28

此外,您的属性集必须适用于所有产品类型,或者几乎适用于简单产品可配置产品

配置屏幕截图

Additionally, your attributes set must be applicable to all product types, or almost Simple Product and Configurable Product.

Configuration Screenshoot

冰之心 2024-10-26 12:06:28

我验证了上述所有内容但没有成功,但是我确实发现了另一个解决我的问题的问题:我创建了一个属性而没有设置默认值。我添加了大约 270 个产品,但只有 20 个设置了此属性。一旦我返回并创建一个像“N/A”这样的默认选项,然后重置这些产品的所有属性 - 可配置产品就开始工作。这就像没有任何默认值的属性并且某些产品没有设置它 - 正在破坏它。

I verified all the above with no success however I did find one more issue that solved my problem: I had created an attribute without setting a default value. I had added about 270 products but only 20 had this attribute set. Once I went back in and created a default option like "N/A" and then reset all the attributes for these products - the configurable product started working. It was like having that attribute that didn't have any default and some products didn't have it set - was breaking it.

囚我心虐我身 2024-10-26 12:06:28

我遇到了这个问题,您需要在产品内部执行以下操作,相关产品如下:

网站>>并检查您希望您的产品出现在其中的所有商店。

i have get into this problem the thing you need to do inside the product and the associated product is the following :
go to
websites >> and check all the stores your want your product appear into it.

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