如何与 Magento Commerce 进行数据库访问 (I/O)?
所以,我想导入、导出和修改数据库。 我读过,我必须通过 XML 来做到这一点,但我不太了解他们的文档系统,而且我还没有找到任何好的教程来解释这一点。 我正在慢慢地阅读这本非常昂贵且简短的书,它在某种程度上回答了我的问题,但我渴望更多。
作为第二个问题,我想要一个订单系统,我可以用我自己的代码发送信息或电子邮件。 我认为这将是某种类型的插件,会在特定时间覆盖或调用。 任何信息都会有帮助。
So, I want to import, export and modify the database. I have read that I have to do that by XML, but I don't really understand their doc system and I haven't found any good tutorials out there that explain this. I am slowly reading the very expensive and short book which is somewhat answering my questions, but I crave more.
As a second question, I want to have a order system where I can send out information or emails with my own code. I assume this would be some type of plug-in that would override or be called at a certain time. Any info would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
magento数据的某些部分可以通过后端导入/导出(系统->导入/导出),即产品和客户。
如果您想处理完整的数据库 - 使用您选择的数据库工具(我更喜欢 mysqldump)。
处理导出的 CSV 时...使用 OpenOffice,根据我的经验,它比 Excel 更好地处理分隔字符。
至于你的第二个问题 - 据我了解,如果你想做一些与现有功能不同的事情并保留原来的邮件功能,你将必须开发一个模块。 如果您不想/必须保留原始功能,您可以选择覆盖该模块,据我所知,这要容易得多。 Google 搜索“重写 magento 模块”应该会出现至少一个不错的教程。
Some parts of the magento data can be imported/exported via the backend (System->Import/Export), namely products and customers.
If you want to deal with the complete DB - use your DB tool of choice (I prefer mysqldump).
When dealing with exported CSV.. use OpenOffice, from my experience it deals better with the separation characters than Excel.
As for your second question - as far as I understood, you will have to develop a module if you want to do something different than the existing functionality and keep the original mail functions. If you don't want to/have to keep the original functions, you can opt to overwrite the module, which is much easier as far as I can see. Google search for "overriding magento module" should turn up atleast one decent tutorial.
我在这里找到了我要找的东西:(
在magento网站上:资源-> Magento核心API->产品API或您想要的任何API)
问题是还没有订单API(或者我没有见过)
http://www.magentocommerce.com/wiki/doc/ webservices-api/api/catalog_product#examples
这详细介绍了如何编写外部 php 脚本并获取、编辑或删除产品(或任何具有 API 的其他内容)。
模块看起来仍然令人畏惧,但我正在阅读(非常薄的)magento 书(唯一可用的一本)。
我希望这对其他人有帮助。
I found what I was looking for here:
(on magento site: Resources -> Magento Core API -> Product API or whichever API you want)
The problem is there is no Order API yet (or none that I've seen)
http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product#examples
This details how you'd write an external php script and obtain,edit or delete products (or anything else with an API).
Modules still look daunting, but I am reading through the (very thin) magento book (the only one available).
I hope this helps someone else.