无法在可配置的产品中关联简单产品 [英] Cannot associate Simple Products in a Configurable

查看:91
本文介绍了无法在可配置的产品中关联简单产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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...

我发现了一些细节;

  • 在升级之前 创建的简单产品可以与新的可配置产品和现有产品关联.
  • 升级后 制造的简单产品无法与任何可配置产品相​​关联.
  • 当我创建一个新的Configurable并与快速工具建立关联时,即会创建新的Simple产品,但是没有插入到数据库表catalog_product_relation中.例如,
  • 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.

似乎Adminhtml被某些东西破坏了.我再也没有领头人了,所以请填写寻找的建议.

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.

推荐答案

几个小时后,我终于找到了它. :)
我浏览了服务器端代码和客户端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!

这篇关于无法在可配置的产品中关联简单产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆