Akeneo 1.6:克隆产品

Akeneo 1.6: Clone a product

我们需要在 Akeneo 1.6 中克隆一个产品(只有 SKU 应该改变)。

我们使用了对我的 的回复中描述的方法,但这似乎只适用于 Akeneo 1.4 和 1.5。

我尝试将产品规范化为 JSON,但我还没有找到将其写回产品的简单方法。有任何想法吗?

简单的方法是使用 ProductQueryBuilder to fetch product from the database, then normalize them in array with the ProductNormalizer, change the SKU then use the ProductBuilder to create a product. You can now update it with the ProductUpdater and save it with the ProductSaver

或者,如果您不想开发任何东西,您可以导出所需的产品,更改他们的 SKU,然后重新导入它们:)