0

チェックアウト方法の見つけ方は「ゲスト」か「登録」かです。

getCheckoutMethodは推奨されていないため、使用することをお勧めします。

4

2 に答える 2

1

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');
}
于 2013-09-27T11:33:58.943 に答える