チェックアウト方法の見つけ方は「ゲスト」か「登録」かです。
getCheckoutMethod
は推奨されていないため、使用することをお勧めします。
getCheckoutMethod は quote モデルを介して非推奨になっているため、checkout_onepage モデルを介しても非推奨ではありません。
/**
* Return quote checkout method code
*
* @deprecated after 1.4 beta1 it is checkout module responsibility
* @param boolean $originalMethod if true return defined method from begining
* @return string
*/
public function getCheckoutMethod($originalMethod = false)
{
if ($this->getCustomerId() && !$originalMethod) {
return self::CHECKOUT_METHOD_LOGIN_IN;
}
return $this->_getData('checkout_method');
}