, 당신은 또 다른 단계로 이동할 수있는 방법을 예를 들어이
public function saveCheckoutMethod($method)
{
if (empty($method)) {
return array('error' => -1, 'message' => $this->_helper->__('Invalid data.'));
}
$this->getQuote()->setCheckoutMethod($method)->save();
$quote = $this->getQuote();
if($quote->getBillingAddress()->validate() && $quote->getShippingAddress()->validate())
{
$this->getCheckout()
->setStepData('billing', 'complete', false)
->setStepData('shipping', 'complete', false)
->setStepData('shipping_method', 'allow', true);
Mage::log("Setting step shipping_method.");
}
else
{
$this->getCheckout()->setStepData('billing', 'allow', true);
}
return array();
}
이와
} elseif (isset($data['use_for_shipping']) && $data['use_for_shipping'] == 1) {
// Here you can specify step name
$result['goto_section'] = 'shipping_method';
$result['update_section'] = array(
'name' => 'shipping-method',
'html' => $this->_getShippingMethodsHtml()
);
$result['allow_sections'] = array('shipping');
$result['duplicateBillingInfo'] = 'true';
이동 http://stackoverflow.com (는 배송 주소 단계 생략)/questions/1718293/link-to-a-specific-step-in-onepage-checkout을 사용하십시오. 체크 아웃 단계를 유지하려면 쿠키를 사용하십시오. –