2015-05-14 115 views
0

如何將客戶從opencart導入到magento。有些擴展可用於遷移所有昂貴的數據。將opencart客戶導入magento

產品和類別可以手動完成,但我無法遷移客戶數據。 我相信如果我們能夠在magento中將md5密碼加密更改爲sha1,我們可以實現這一點。請建議。

回答

0

你需要覆蓋1個模型和1名助手改變encrpytion如何在Magento的社區版處理:

部分

的config.xml文件

<global> 
    <models> 
     <customer> 
      <rewrite> 
       <customer>Momodule_Encryption_Model_Customer</customer> 
      </rewrite> 
     </customer> 
    </models> 
    <helpers> 
     <core> 
      <encryption_model>Mymodule_Encryption_Model_Encryption</encryption_model> 
     </core> 
     <mymodule_encryption> 
      <class>Yes_Encryption_Helper</class> 
     </mymodule_encryption > 
    </helpers> 
</global> 

,你需要重寫CustomerController,因此在用戶登錄或創建帳戶時使用正確的加密方法:

<frontend> 
     <routers> 
      <customer> 
       <use>standard</use> 
       <args> 
        <modules> 
         <Mymodule_Encryption before="Mage_Customer">Mymodule_Encryption</Mymodule_Encryption> 
        </modules> 
       </args> 
      </customer> 
     </routers> 
    </frontend> 

至於客戶導入部分,您可以輕鬆處理模型並解析來自其他商店的XML/CSV數據。