magento自定义onepage结账流程
我想自定义 magento 中的单页结账流程,如果用户登录,则步骤 1 包括购物车,否则登录表单和登录后购物车应该在那里。现在进行第二步;应该有账单信息、运输信息、付款方式选项和运输选项的输入表格。现在第三步是订单审核,第四步是付款,最后一步是收据和下订单。
I want to customize the onepage checkout process in magento in such a way that step 1 consists of shopping cart if user logged in otherwise login form and after login cart should be there. now in 2nd step; there should be input form of billing information, shipping information, payment methods options and shipping options. now in 3rd step, order review and 4th would be payment and last one would be Receipt and place order.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此时您基本上正在重写单页结账。控制 JS
opcheckout.js
是为现有流程编写的,因此不要指望能够以任何合理的方式重用它。也就是说,如果您查看实际的模型/块类(分别是Mage_Checkout_Model_Type_Onepage
和Mage_Checkout_Block_Onepage
),它们实际上编写得非常干净,因此您应该能够窃取它们作为你的版本。You're basically rewriting the onepage checkout at this point. The controlling JS
opcheckout.js
is written pretty tightly for the existing process, so don't count on being able to reuse it in any sane manner. That said, if you take a look at the actual model/block classes (Mage_Checkout_Model_Type_Onepage
andMage_Checkout_Block_Onepage
, respectively) they're actually pretty cleanly written, so you should be able to steal them for your version.http://www.excellencemagentoblog.com/magento-onestep-checkout -remove- payment-method-step 您可以浏览上面提到的链接,它涵盖了自定义一页结帐的各个方面。
http://www.excellencemagentoblog.com/magento-onestep-checkout-remove-payment-method-step You can go through above mentioned link it covers aspects of customizing one page checkout.