简体   繁体   English

更改magento中的产品类型

[英]Change Product type in magento

I have two products and their type is "Grouped Product" now I want to change this products in to simple product. 我有两个产品,它们的类型是“分组产品”,现在我想将此产品更改为简单产品。 Is there any way to do so? 有没有办法这样做?

Some links says I have to change directly from database. 有些链接说我必须直接从数据库更改。 I tried this but nothing changes. 我试过了,但没有任何变化。 Is there any way to do it? 有什么办法吗?

If it's only 2 maybe you should just create 2 new products with same url and change the url of the old ones. 如果只有2个,也许您应该只用相同的URL创建2个新产品,然后更改旧产品的URL。

Alternatively you could do some programming. 或者,您可以进行一些编程。

Maybe start with this class Mage_Catalog_Model_Product_Type_Grouped . 也许从此类Mage_Catalog_Model_Product_Type_Grouped开始。 the public function getAssociatedProducts returns an array of associated products which you can simply sort through applying whatever logic before creating your new products. 公用函数getAssociatedProducts返回关联产品的数组,您可以在创建新产品之前简单地通过应用任何逻辑对其进行排序。

You have to deal with store scope etc during this process but there's lots of tutorials. 在此过程中,您必须处理存储范围等问题,但是有很多教程。

product type cannot be changed in admin! 产品类型无法在admin中更改!

may be you could go "catalog_product_entity" table and change the type_id from grouped to simple, but i dunno whether it induced new error, but one thing i only know is you must lost the grouped item linkage. 可能是您可以进入“ catalog_product_entity”表并将type_id从分组更改为简单,但是我不知道它是否引起了新的错误,但是我只知道的一件事是您必须丢失分组项目的链接。

您是否重建了索引(管理/系统/索引管理)并刷新了缓存(管理/系统/缓存管理)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM