Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by njcyx View Post
    I think I found an issue. I noticed this issue under 2.4.4 beta2 and 2.4.4 release version.

    Open a fresh browser tab. Add a product to the shopping cart. Click "My Account" link on the bottom (/index.php?main_page=account), it will display the login page (/index.php?main_page=login), which is correct.

    Then go back to the shopping cart, click "Go to checkout", then click "Go to checkout" button under the Guest Checkout section. You don't need to fill anything. Go to the bottom of the page then click "My Account" ((/index.php?main_page=account)). You will see error "ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED" on the top of the page. A log file will be generated as the following:

    [08-Dec-2022 14:25:27 America/New_York] Request URI: /index.php?main_page=account
    #1 checkout_one_observer->messageCheck() called at [/includes/autoload_func.php:61]
    #2 require(/includes/autoload_func.php) called at [/includes/application_top.php:222]
    #3 require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: Use of undefined constant ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED - assumed 'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' (this will throw an Error in a future version of PHP) in /includes/classes/observers/class.checkout_one_observer.php on line 258.
    Hmm, that constant is defined in /includes/languages/english/extra_definitions/lang.checkout_one_extra_definitions.php. Did you, perhaps, forget to copy that file when you installed?

  2. #2
    Join Date
    Apr 2019
    Posts
    345
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Hmm, that constant is defined in /includes/languages/english/extra_definitions/lang.checkout_one_extra_definitions.php. Did you, perhaps, forget to copy that file when you installed?
    Hi @lat9, thanks for your always help.

    I just checked my testing site directory, and I did find that file lang.checkout_one_extra_definitions.php under the directory /includes/languages/english/extra_definitions/.

    To avoid any mistake, I got a fresh copy from the 2.4.4 zip file and uploaded it again to my directory to overwrite the previous file. Unfortunately, the issue remains...

    Also, I used the developer took kit function from zen cart to search keyword "ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED". I can find two files have this keyword:

    /includes/classes/observers/class.checkout_one_observer.php

    and

    /includes/languages/english/extra_definitions/lang.checkout_one_extra_definitions.php
    Last edited by njcyx; 9 Dec 2022 at 06:52 PM.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Hmm, that constant is defined in /includes/languages/english/extra_definitions/lang.checkout_one_extra_definitions.php. Did you, perhaps, forget to copy that file when you installed?
    In the above file, it appears that
    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
    should be

    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
    Simon

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by simon1066 View Post
    In the above file, it appears that
    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
    should be

    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
    Raised as an issue on Github.
    Simon

  5. #5
    Join Date
    Apr 2019
    Posts
    345
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by simon1066 View Post
    In the above file, it appears that
    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
    should be

    Code:
    'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
    Hi @Simon, I just tried your suggestion and it fixed! Thanks!

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: One-Page Checkout [Support Thread]

    PR created. Thanks Simon.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    v2.4.5 of One-Page Checkout is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

    This release contains changes associated with the following GitHub issues:

    #364: Correct missing language-constant ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED.
    #367: HTML5, remove type="text/javascript" from <script> tags.
    #368: order_status page, correct PHP fatal error on initial installation on zc157.
    #369: Ensure that $_SESSION['customers_email_address'] is set for registered-account creation and guest-checkout.

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg