下订单时保存产品 ID。马根托

发布于 2024-11-28 06:28:04 字数 48 浏览 6 评论 0原文

客户下订单后,我必须保存产品 ID 和客户 ID。我可以在哪里以及如何做到这一点?

I have to save product id and customer id after customer place order. Where and how can I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平生欢 2024-12-05 06:28:04

如果您使用默认的一页结账结账,则可以侦听 checkout_type_onepage_save_order_after 事件或 checkout_onepage_controller_success_action 事件。前者在创建并保存订单时调用,后者在成功下订单时调用。

您可以在此处找到有关如何使用事件的教程:http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/customizing_magento_using_event-observer_method

希望有帮助:-)

You can listen to the checkout_type_onepage_save_order_after event or the checkout_onepage_controller_success_action if you use the default One Page Checkout checkout. The former is called when an order is created and saved, the latter when a order is succesfully placed.

You can find a tutorial about how to use events here: http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/customizing_magento_using_event-observer_method.

Hope that helps :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文