[英]Magento checkout steps move review before payment in Magento checkout
I'd like to change the order of the One page checkout in Magento. 我想更改Magento中“一页”结帐的顺序。 I want to move the Review step before the Payment.
我想在“付款”之前移动“审核”步骤。
I've already changed the OnepageController to 我已经将OnepageController更改为
$stepCodes = array('billing', 'shipping', 'shipping_method', 'review', 'payment');
and saveShippingMethodAction in OnepageController to 并在OnepageController中将ShippingMethodAction保存到
$result['goto_section'] = 'review';
$result['update_section'] = array(
'name' => 'review',
'html' => $this->_getReviewHtml()
);
However i'm getting error Fatal error: Call to a member function toHtml() on a non-object in D:\\xampp\\htdocs\\cfh\\app\\code\\core\\Mage\\Checkout\\controllers\\OnepageController.php on line 289
但是我收到错误
Fatal error: Call to a member function toHtml() on a non-object in D:\\xampp\\htdocs\\cfh\\app\\code\\core\\Mage\\Checkout\\controllers\\OnepageController.php on line 289
when I save the shipping method. 当我保存运输方式时。
Any idea ? 任何想法 ?
thanks 谢谢
Add $this->loadLayout('checkout_onepage_review');
添加
$this->loadLayout('checkout_onepage_review');
before $result['update_section']
在
$result['update_section']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.