Magento:参与结账流程的最佳方式
我正在与第三方订单管理系统集成,我必须在整个结帐过程中调用它。问题是,我认为没有很多可用的事件,因为单页结帐都是在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要挂钩结帐的事件,挂钩模型的事件。 您可以
连接并监视地址的添加。
您还可以挂钩一般
操作并查找地址对象。
您还可以利用类覆盖系统并重新定义
Mage_Sales_Model_Quote
上的保存方法之一。Don't hook into the events of the checkout, hook into the events of the Models. There's a
that you could hook into into and monitor for the addition of an address.
You could also hook into the general
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
.