简体   繁体   English

Magento-重新排序一页结帐

[英]Magento - reorder onepage checkout

Hi I am trying to reoder my onepage checkout. 嗨,我正在尝试整理我的一页结帐。 First I am trying this by modifying the core files and when this works, I am overriding them in my files, so I can update them. 首先,我通过修改核心文件来进行尝试,并且在可行时,我将其覆盖在文件中,以便可以对其进行更新。 I can reorder my onepage checkout to the desired form: 我可以将一页结帐重新排序为所需的形式:

    'shipping_method','shipping','billing','payment', 'review'

My checkout is now in this desired output, but the shipping method is not loaded. 现在,我的结帐处在此所需的输出中,但未加载运输方式。 I Modified the files: 我修改了文件:

Block/onepage.phtml - 块/onepage.phtml-

 $stepCodes = array('shipping_method','shipping','billing','payment', 'review');

opcheckout.js - opcheckout.js-

  this.steps = ['shipping_method','shipping','billing','payment', 'review'];

  this.currentStep = 'shipping_method';

What did I do wrong, that the shipping method is not loaded? 加载方法未加载,我做错了什么?

An old question, but the reason your shipping methods must not be loaded is because shipping methods depend on the shipping address (mainly country). 一个古老的问题,但是不能加载运输方式的原因是,运输方式取决于运输地址(主要是国家/地区)。 So if you haven't set your shipping address then Magento doesn't know what shipping methods are applicable. 因此,如果您尚未设置送货地址,那么Magento将不知道适用的送货方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM