Magento:参与结账流程的最佳方式

发布于 2024-10-10 08:47:45 字数 349 浏览 1 评论 0原文

我正在与第三方订单管理系统集成,我必须在整个结帐过程中调用它。问题是,我认为没有很多可用的事件,因为单页结帐都是在 javascript/ajax 调用中完成的。保存运输方式后有一些类似的情况,并且似乎没有一个动态事件适合。基本上,我需要知道用户何时访问“送货方式”选项卡以传递帐单送货地址,然后在送货方式之后传递该地址。显然有一个事件。我知道当您提交订单时会有一些,所以这应该很好。

我想我只需要知道帐单/送货地址何时保存。我正在使用controller_action_layout_render_before_checkout_onepage_progress,但进度被调用得太晚了。单页结账似乎并没有很多亮点。如果有人能给我一些他们所做的事情的例子,那就太好了!

I am integrating with a third party order management system and I have to make calls to it throughout the checkout process. The problem is, I don't think there are many events available because of how the onepage checkout is all done in javascript/ajax calls. There are a few like after saving the shipping method, and none of the dynamic events seem to fit either. basically I need to know as soon as the user is getting access to the shipping method tab to pass the billing shipping address over, then after the shipping method, to pass that over. Obviously there is an event for that. I know there are ones for when you submit an order so that should be good.

I guess I only need to know when the billing/shipping address is saved. I was using controller_action_layout_render_before_checkout_onepage_progress but the progress gets called way to late. It just doesn't seem like there are a lot of hooks through the onepage checkout. if anyone can give me some examples of what they have done that would be great!

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

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

发布评论

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

评论(1

辞旧 2024-10-17 08:47:45

不要挂钩结帐的事件,挂钩模型的事件。 您可以

sales_quote_save_before
sales_quote_save_after

连接并监视地址的添加。

您还可以挂钩一般

model_save_before
model_save_after

操作并查找地址对象。

您还可以利用类覆盖系统并重新定义 Mage_Sales_Model_Quote 上的保存方法之一。

Don't hook into the events of the checkout, hook into the events of the Models. There's a

sales_quote_save_before
sales_quote_save_after

that you could hook into into and monitor for the addition of an address.

You could also hook into the general

model_save_before
model_save_after

actions and look for address objects.

You could also tap into the class override system and redefine one of the save methods on Mage_Sales_Model_Quote.

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