Magento2 EE企业版 转为 社区版free license

2.44K 浏览开发笔记问题

Magento2 EE企业版 转为 社区版free license

M2用社区版的很多,那么你知道企业版收费多少么。这个是因人而异的,我现在的项目, 一年大概6万多美元。所以需要降成免费社区版。 方法也很简单,丢掉企业版那些专有的模块即可。 当前版本Magento2.1 ee企业版本 在数据库中执行如下sql即可
<code>DELETE FROM setup_module WHERE module IN (
        'Magento_AdvancedSearch', 'Magento_Amqp', 'Magento_BundleStaging', 'Magento_CatalogEvent', 'Magento_CatalogImportExportStaging', 'Magento_CatalogInventoryStaging', 'Magento_CatalogPermissions', 'Magento_CatalogRuleStaging', 'Magento_CatalogStaging', 'Magento_CatalogUrlRewriteStaging', 'Magento_CheckoutStaging', 'Magento_CmsStaging', 'Magento_ConfigurableProductStaging', 'Magento_CustomerBalance', 'Magento_CustomerFinance', 'Magento_Cybersource', 'Magento_DownloadableStaging', 'Magento_Elasticsearch', 'Magento_Enterprise', 'Magento_Eway', 'Magento_GiftCardAccount', 'Magento_GiftCardImportExport', 'Magento_GiftCardStaging', 'Magento_GiftMessageStaging', 'Magento_GiftRegistry', 'Magento_GiftWrapping', 'Magento_GiftWrappingStaging', 'Magento_GoogleOptimizerStaging', 'Magento_GroupedProductStaging', 'Magento_Invitation', 'Magento_LayeredNavigationStaging', 'Magento_MessageQueue', 'Magento_MsrpStaging', 'Magento_MultipleWishlist', 'Magento_MysqlMq', 'Magento_PaymentStaging', 'Magento_PersistentHistory', 'Magento_PricePermissions', 'Magento_ProductVideoStaging', 'Magento_PromotionPermissions', 'Magento_Reminder', 'Magento_ResourceConnections', 'Magento_ReviewStaging', 'Magento_Reward', 'Magento_RmaStaging', 'Magento_SalesArchive', 'Magento_SalesRuleStaging', 'Magento_ScalableCheckout', 'Magento_ScalableInventory', 'Magento_ScalableOms', 'Magento_ScheduledImportExport', 'Magento_SearchStaging', 'Magento_Solr', 'Magento_Staging', 'Magento_Support', 'Magento_VersionsCms', 'Magento_WebsiteRestriction', 'Magento_WeeeStaging', 'Magento_Worldpay', 'Magento_Banner', 'Magento_BannerCustomerSegment', 'Magento_CustomAttributeManagement', 'Magento_CustomerBalance', 'Magento_CustomerCustomAttributes', 'Magento_CustomerSegment', 'Magento_GiftCard', 'Magento_GoogleTagManager', 'Magento_Logging', 'Magento_Rma', 'Magento_TargetRule', 'Magento_VisualMerchandiser'
);


UPDATE eav_attribute SET backend_model = 'Magento\\Catalog\\Model\\Product\\Attribute\\Backend\\Price' WHERE attribute_code = 'giftcard_amounts' LIMIT 1;
UPDATE eav_attribute SET backend_model = NULL WHERE attribute_code IN ('related_tgtr_position_limit','related_tgtr_position_behavior','upsell_tgtr_position_limit','upsell_tgtr_position_behavior');
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'is_returnable' AND entity_type_id = 4 LIMIT 1;
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'allow_open_amount' AND entity_type_id = 4 LIMIT 1;
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'giftcard_type' AND entity_type_id = 4 LIMIT 1;
</code>
完事!
1