Page 251 of 281 FirstFirst ... 151201241249250251252253261 ... LastLast
Results 2,501 to 2,510 of 2805
  1. #2501
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by njcyx View Post
    Update. My live site still received intermittent duplicated orders, like once per week. Nowadays, customers are really mad at this...

    Anyway, I did some further changes today and I will report if helps.

    1. I change AJAX time-out from 6s to 8s. A few months ago, I changed it from 4s to 6s. Not sure if it helps.

    2. According to the following post

    https://www.zen-cart.com/showthread....76#post1317476

    I change the setTimeout('button_timeout()', 4000) from 4s to 20s. There are two files uses this function:

    \includes\modules\pages\checkout_confirmation\jscript_double_submit.php
    \includes\modules\pages\checkout_one_confirmation\jscript_main.php

    I changed both to 20s. Here is a similar post from Stripe.com plug-in

    https://www.zen-cart.com/showthread....dule&p=1386282

    The author recommended to re-enable the submit button after 9s. So if 20s works on my end, I may try 10s instead.

    Background: I'm using zc 1.5.7d, opc 2.4.4b2, paypal pro and express, php 7.4
    Update: this trick doesn't help. Two weeks later I received another duplicated order case.

  2. #2502
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by schoolboy View Post
    Trial version of 1.5.8, with OPC installed.
    Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
    Lines 38 and 44 in the following file...

    one_page_checkout-2.4.3\includes\languages\english\order_status.php
    TEXT_LOOKUP_INSTRUCTIONS
    ENTRY_ORDER_NUMBER

    I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

    Code:
    <?php
    $define = [
        'NAVBAR_TITLE' => 'Order Status',
        'NAVBAR_TITLE_1' => 'My Account',
        'HEADING_TITLE' => 'Check Order History',
        'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below',
        'ENTRY_ORDER_NUMBER' =>'Order Number',
    ];
    
    return $define;
    ... and this now returns the desired text variable.
    I want to add a little bit more information regarding this issue.

    zc1.58 includes order_status.php by default, which has the same name as the order_status.php by opc.

    So there will be two language definition files for lang.order_status.php. One from OPC (order_status.php), one from zc1.58 (lang.order_status.php). So obviously there is a conflict.

    I re-wrote the order_status.php from OPC into zc1.58 format and name it as "lang.order_status.php", to replace the lang.order_status.php from zc1.58. And it worked fine.

  3. #2503
    Join Date
    Apr 2019
    Posts
    244
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    My previous post could be confusing...Anyway, there are two similar language files. One from opc and one from the zc. So there might be some conflict for their functions.

    Here is the language file I modified for opc and zc1.58 (lang.order_status.php). Please remove the original order_status.php from OPC in your directory.

    Let's see if @lat9 has a better way to improve it.

    PHP Code:
    <?php
    $define 
    = [

    // -----
    // Part of the One-Page Checkout plugin => provided under GPL 2.0 license by lat9 ([email protected]).
    // Copyright (C) 2018 => Vinos de Frutas Tropicales.  All rights reserved.
    //
    // Adapted from the like-named page handling with the following history:
    // - Integrated COWAA v1.0

    'NAVBAR_TITLE' => 'Order Status',
    'NAVBAR_TITLE_1' => 'My Account',

    'HEADING_TITLE' => 'Check Order Status'//Lookup Order Information

    'SUB_HEADING_TITLE' => 'Order Information',

    'HEADING_ORDER_NUMBER' => 'Order #%s',
    'HEADING_ORDER_DATE' => 'Order Date:',
    'HEADING_ORDER_TOTAL' => 'Order Total:',

    'HEADING_PRODUCTS' => 'Products',
    'HEADING_TAX' => 'Tax',
    'HEADING_TOTAL' => 'Total',
    'HEADING_QUANTITY' => 'Qty.',

    'HEADING_SHIPPING_METHOD' => 'Shipping Method',
    'HEADING_PAYMENT_METHOD' => 'Payment Method',

    'HEADING_ORDER_HISTORY' => 'Status History &amp; Comments',
    'TEXT_NO_COMMENTS_AVAILABLE' => 'No comments available.',
    'TABLE_HEADING_STATUS_DATE' => 'Date',
    'TABLE_HEADING_STATUS_ORDER_STATUS' => 'Order Status',
    'TABLE_HEADING_STATUS_COMMENTS' => 'Comments',
    'QUANTITY_SUFFIX' => '&nbsp;ea.  ',
    'ORDER_HEADING_DIVIDER' => '&nbsp;-&nbsp;',
    'TEXT_OPTION_DIVIDER' => '&nbsp;-&nbsp;',

    'ENTRY_EMAIL' => 'E-Mail Address:',
    'ENTRY_ORDER_NUMBER' => 'Order Number:',

    'ERROR_INVALID_EMAIL' => 'You have entered an invalid e-mail address.',
    'ERROR_INVALID_ORDER' => 'You have entered an invalid order number.',
    'ERROR_NO_MATCH' => 'No match found for your entry.',

    'TEXT_LOOKUP_INSTRUCTIONS' => 'To lookup the status of an order, please enter the order number and the e-mail address with which it was placed.'

    'FOOTER_DOWNLOAD' => 'You can also download your products at a later time at \'%s\'',
    'FOOTER_DOWNLOAD_COWOA' => 'You can download your products using the Order Status page until you reach max downloads or run out of time!',

    ];

    return 
    $define;
    Last edited by njcyx; 31 Oct 2022 at 05:42 PM.

  4. #2504
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Cindy - Is there any way to somehow still enable GUEST CHECKOUT, but NOT have the one-page checkout?

    One of the MAIN reasons why I love OPC is not for the single page, but rather, for the ability to have Guest Checkout.

    As it stands, if the configuration for "Enable One-Page Checkout?" is set to false, it turns off the entire module. But since you also have an "Enable Guest Checkout?" value, is there any possibility in future releases where one can not be dependent on the other?

    For example, can have the default 3 page checkout (by setting Enable OPC to false), but also have the Guest checkout option by setting that to true?
    - Jeff

  5. #2505
    Join Date
    Apr 2011
    Posts
    383
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    ZC 1.5.7d
    Bootstrap 3.3.0
    OPC 2.4.3

    PhP version 7.3

    I am getting some errors as follow and I believed it OPC related somehow:

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 46.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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_SHIPPING_TIMEOUT - assumed 'JS_ERROR_AJAX_SHIPPING_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 47.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 47.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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_PAYMENT_TIMEOUT - assumed 'JS_ERROR_AJAX_PAYMENT_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 48.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 48.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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_SET_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 49.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 49.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 50.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 50.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 51.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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 51.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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.

    [16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
    #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.
    Any helps on resolving would be greatly appreciated.

    Thank you

  6. #2506
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    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 has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #2507
    Join Date
    Apr 2011
    Posts
    383
    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

  8. #2508
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    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.

  9. #2509
    Join Date
    Apr 2011
    Posts
    383
    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.

  10. #2510
    Join Date
    Apr 2011
    Posts
    383
    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

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR