Results 1 to 10 of 3052

Hybrid View

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

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by dbltoe View Post
    The reason I found the version situation was I was trying to duplicate a problem with a customer's site. I tried loading the newer version to see if it made any difference. Still having problems nailing it down. You know how much of a "dog with a bone" I can be on these things.

    In case anyone else wants to try, here's the scenario. After the site owner said a customer complained that they were getting the wrong item, he contacted me and I found that the latest order made by that person was as a Guest. The customer had created an account a year prior, couldn't remember log in, and just did a guest checkout. When the owner updated the status from pending to processing, it sent out the e-mail BUT, it did not sent out the Guest e-mail with the link to enter your order# etc. It sent an e-mail with a link to his account history from his previous account which did NOT include the latest item (of course).

    The account history e-mail link triggered the customer's stored info in their browser and they logged in only to find their latest order NOT there (again, of course) and assumed they were getting the old order versus the new.

    I tried duplicating the problem using two test accounts that were created when we (myzencarthost) upgraded the site originally. I ordered the same item for each using the Guest checkout. One received the "correct" e-mail while the other received an e-mail listing the older test order.

    Oddly enough, the one giving the incorrect link (https://YOUR_SITE.com/index.php?main...&order_id=####) had NONE of the formatting normally found with an update email. No logo at the top, border around the text, Copyright at the bottom, etc.

    When I checked the confirmation e-mail, it had no formatting either.

    AND..... I have not been able to recreate the problem with the two test accounts. Nor, have we gotten any feedback from customers that anything is amiss. All logs were checked to no avail and I continue to scratch my head over this one.

    Using guest checkout for the two test accounts has not produced an incorrect e-mail since the very first one

    Perhaps someone else has had this or knows a better way to troubleshoot than just continuing to do test checkouts.

    THANX
    What's the original version of OPC? I'll note that there were issues (can't readily remember when the correction was made) in older versions where the guest-customer record got written with actual customer information.

  2. #2
    Join Date
    Oct 2020
    Location
    australia
    Posts
    31
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Does this work on php 8.1 ? Thanks

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

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by markau View Post
    Does this work on php 8.1 ? Thanks
    I've not yet tested on PHP 8.1, but the current version of Zen Cart supports PHP versions up to 8.0.

  4. #4
    Join Date
    Oct 2020
    Location
    australia
    Posts
    31
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Many thanks

  5. #5
    Join Date
    Oct 2020
    Location
    australia
    Posts
    31
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    I tested on php 8.1, worked very well

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

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by markau View Post
    I tested on php 8.1, worked very well
    Thanks for the testing and feedback!

  7. #7
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: One-Page Checkout [Support Thread]

    There are multiple reasons why the Ajax timeout message could be displayed, so the fact that it's so generic makes tracking an issue a little more difficult.
    I made a few modifications so that the timeout message now gives details of what the timeout relates to.

    includes/languages/English/checkout_one.php

    Find (line 57)
    Code:
    define('JS_ERROR_AJAX_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s shipping cost.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    Replace with
    Code:
    define('JS_ERROR_AJAX_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s details (General Ajax Timeout error).  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_SHIPPING_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s shipping cost.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_PAYMENT_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s payment method.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to set your order\\\'s address.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to restore your order\\\'s address values.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to validate your order\\\'s address details.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT', 'It\\\'s taking a little longer than normal to restore your customer details.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
    define('JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT', 'It\\\'s taking a little longer than normal to validate your customer details.  Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');

    includes/modules/pages/checkout_one/jquery.checkout_one.js

    Find (line 471)
    Code:
     alert( ajaxTimeoutErrorMessage );
    Replace with
    Code:
    alert( ajaxTimeoutShippingErrorMessage );
    Find (line 639)
    Code:
     alert( ajaxTimeoutErrorMessage );
    Replace with
    Code:
    alert( ajaxTimeoutPaymentErrorMessage );
    Find (line 700)
    Code:
    alert(ajaxTimeoutSetAddressErrorMessage);
    Replace with
    Code:
    alert( ajaxTimeoutPaymentErrorMessage );
    Find (line 796)
    Code:
    alert(ajaxTimeoutSetAddressErrorMessage);
    Replace with
    Code:
    alert(ajaxTimeoutRestoreAddressErrorMessage);
    Find (line 860)
    Code:
    alert(ajaxTimeoutSetAddressErrorMessage);
    Replace with
    Code:
    alert(ajaxTimeoutValidateAddressErrorMessage);
    Find (line 959)
    Code:
    alert(ajaxTimeoutSetAddressErrorMessage);
    Replace with
    Code:
    alert(ajaxTimeoutRestoreCustomerErrorMessage);
    Find (line 959)
    Code:
    alert(ajaxTimeoutSetAddressErrorMessage);
    Replace with
    Code:
    alert(ajaxTimeoutValidateCustomerErrorMessage);

    includes/modules/pages/checkout_one/jscript_main.php

    Find (line 33)
    Code:
    var ajaxTimeoutErrorMessage = '<?php echo JS_ERROR_AJAX_TIMEOUT; ?>';
    Add after
    Code:
    var ajaxTimeoutShippingErrorMessage = '<?php echo JS_ERROR_AJAX_SHIPPING_TIMEOUT; ?>';
    var ajaxTimeoutPaymentErrorMessage = '<?php echo JS_ERROR_AJAX_PAYMENT_TIMEOUT; ?>';
    var ajaxTimeoutSetAddressErrorMessage = '<?php echo JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT; ?>';
    var ajaxTimeoutRestoreAddressErrorMessage = '<?php echo JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT; ?>';
    var ajaxTimeoutValidateAddressErrorMessage  = '<?php echo JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT; ?>';
    var ajaxTimeoutRestoreCustomerErrorMessage = '<?php echo JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT; ?>';
    var ajaxTimeoutValidateCustomerErrorMessage = '<?php echo JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT; ?>';
    @lat9, please consider adding these edits to the master file set, if only to save me having to make them every time I do an update to this great module!

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

    Default Re: One-Page Checkout [Support Thread]

    I've created a tracking issue (https://github.com/lat9/one_page_checkout/issues/312) for the change. Note that my implementation might be a tad different (as always), where I'd split the final common "Please close..." sentence to aid in language translations.

 

 

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