Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: One-Page Checkout [Support Thread]

    do you have this file in your install:

    https://github.com/lat9/one_page_che...eckout_one.php
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Apr 2011
    Posts
    586
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by carlwhat View Post
    do you have this file in your install:

    https://github.com/lat9/one_page_che...eckout_one.php
    Yes I have the language files.

    Could an additional jscript file cause the issue?

    I added the following file named jscript_paypal.php in includes/modules/pages/checkout_one with the following code:
    Code:
    <script defer
        src="https://www.paypal.com/sdk/js?client-id=Aegt8Ag48Qk8****hidden**********AWXJIkxeeiWN2Na1vIpn-mTwy6QygzUb&components=messages"
        data-namespace="PayPalSDK">
    </script>
    The paypal script is only needed on this page so i thought of doing it this way instead of in html_header between the <head> tag.

    Did i mess it up and/or did it wrong? It could be interfering with jscript_main.php

    Thank you for your help

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

    Default Re: One-Page Checkout [Support Thread]

    Do you also have this (https://github.com/lat9/one_page_che..._functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.

  4. #4
    Join Date
    Apr 2011
    Posts
    586
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Do you also have this (https://github.com/lat9/one_page_che..._functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.
    I have this file as well but my version was a little different.( after winmerge comparison)

    I had this code around line 128:

    Code:
    if (!defined('IS_ADMIN_FLAG') || IS_ADMIN_FLAG !== true) { 
           $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    } else {
        $base_language_dir = DIR_FS_CATALOG_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    }
    instead of

    Code:
       $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    I replaced my file with the github version and also removed my jscript_paypal.php hoping it will fix the error log.

    I also looked up some of the constant using developer tool kit and they are present in the file /includes/languages/english/lang.checkout_one.php

    Not sure what it could be. I resetted the error log and waiting to see if it happens again.

  5. #5
    Join Date
    Apr 2011
    Posts
    586
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Do you also have this (https://github.com/lat9/one_page_che..._functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.
    Looks like I am out of luck on this one.

    The errors are back with a vengeance:

    [18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
    #1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
    #2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
    --> PHP Warning: Use of undefined constant JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

    [18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
    #1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
    #2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
    --> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

    [18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
    #1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
    #2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
    --> PHP Warning: Use of undefined constant JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.

    [18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
    #1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
    #2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
    --> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.
    Anything other ideas what could be causing the issue?

    Thank you for all your help

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

    Default Re: One-Page Checkout [Support Thread]

    @nicksab, whatever changes you have made to OPC's base files are what's are giving you these issues. I suggest that you do a full review of those changes to see how they might be affecting the OPC update.

  7. #7
    Join Date
    Apr 2011
    Posts
    586
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    @nicksab, whatever changes you have made to OPC's base files are what's are giving you these issues. I suggest that you do a full review of those changes to see how they might be affecting the OPC update.
    My apologies has I must have messed up it up somehow. I removed OPC and reinstalled it as well as applied the Bootstrap changes. So fa, no error.

    However, since I don t want to break it again:

    How do i remove the "bottom instructions" box?

    How can i make the "specials instructions/comment box" required or mandatory?

    Thank you

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

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by nicksab View Post
    My apologies has I must have messed up it up somehow. I removed OPC and reinstalled it as well as applied the Bootstrap changes. So fa, no error.

    However, since I don t want to break it again:

    How do i remove the "bottom instructions" box?

    How can i make the "specials instructions/comment box" required or mandatory?

    Thank you
    You remove the "bottom instructions" by editing your template-override of /includes/languages/english/lang.checkout_one.php, so that would be in your bootstrap-clone's language sub-directory: /includes/languages/english/YOUR_TEMPLATE/lang.checkout_one.php.

    You'll need custom code to make an entry in the comment-box mandatory.

 

 

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