致命错误未定义的类常量'METHOD_GUEST'[Magento]

时间:2012-02-10 14:29:29

标签: magento checkout

我刚刚将magento从1.3.x升级到最新的稳定版本。现在我遇到了单页结账的问题。我检查结帐页面的源代码,我看到了以下错误。

<input type="radio" name="checkout_method" id="login:guest" value="guest"<br />
<b>Fatal error</b>:  Undefined class constant 'METHOD_GUEST' in <b>/home/dev2/public_html/app/design/frontend/base/default/template/persistent/checkout/onepage/login.phtml</b> on line <b>53</b><br />

以下是login.phtml文件的源代码。

           ?,直到最底层( 'login_before')&GT;                  

getQuote() - &gt; isAllowedGuestCheckout()):?&gt; __('以访客身份登记或注册')?&gt; __('注册创建帐户')?&gt;

          getQuote() - &gt; isAllowedGuestCheckout()):?&gt;               

__('为了将来的方便而向我们注册:')?&gt;

                         

__('注册并节省时间!')?&gt;
              __('为了将来方便我们注册:')?&gt;

              
                      
  • __('快速轻松退房')?&gt;
  •                   
  • __('轻松访问您的订单历史记录和状态')?&gt;
  •               
                     getQuote() - &gt; isAllowedGuestCheckout()):?&gt;                                  getQuote() - &gt; isAllowedGuestCheckout()):?&gt;                                          getQuote() - &gt; getCheckoutMethod()== Mage_Checkout_Model_Type_Onepage :: METHOD_GUEST):?&gt; checked =“checked”class =“radio”/&gt; __('Checkout as Guest')?&gt;                                                                                为getQuote() - &GT; getCheckoutMethod()== Mage_Checkout_Model_Type_Onepage :: METHOD_REGISTER   || !$ this-&gt; getQuote() - &gt; isAllowedGuestCheckout()):?&gt;   checked =“checked”class =“radio”/&gt; __('Register')?&gt;                                                 __('注册并节省时间!')?&gt;               

__('为了将来的方便而向我们注册:')?&gt;

                                 
  • __('快速轻松退房')?&gt;
  •                   
  • __('轻松访问您的订单历史记录和状态')?&gt;
  •                                                                             

    __('登录')?&gt;

              getMessagesBlock() - &gt; getGroupedHtml()?&gt;           getPostAction()?&gt;“method =”post“&gt;                          __('已经注册?')?&gt;               

    __('请在下面登录:')?&gt;

                                     
  •                        * __('电子邮件地址')   ?&GT;                                                  htmlEscape($ this-&gt; getUsername())?&gt;“/&gt;                                          
  •                   
  •                        * __('密码')?&gt;                                                                                            
  •                   直到最底层( 'persistent.remember.me'); ?&GT;                                                                                              

                  getQuote() - &gt; isAllowedGuestCheckout()):?&gt;                   __('继续')?&gt;                                  使用getURL( '持久性/索引/ saveMethod'); ?&gt;“中&GT;                       __('注册')?&gt;                                                                                     __('*必填字段')?&gt;

                  getUrl('customer / account / forgotpassword')?&gt;“   class =“f-left”&gt; __('忘记密码?')?&gt;               __('登录')   ?&GT;                     // getRequest() - &gt; getParam('register');       if($ registerParam || $ registerParam ===''):?&gt;              //        
    我在这里错过了什么吗?

    非常感谢

    0 个答案:

    没有答案