Results 1 to 10 of 3052

Hybrid View

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

    Default Re: One-Page Checkout [Support Thread]

    Ok. I found out why my plug-in didn't show up. After the plug-in is installed, two settings need to be changed manually:

    Enable One-Page Checkout?
    False => True

    Enable Guest Checkout?
    False => True

    Now it works, other than the warning log generated:

    --> PHP Warning: var_export does not handle circular references in /includes/classes/OnePageCheckout.php on line 744.

    When debug is ON, I received the following warning:

    --> PHP Warning: var_export does not handle circular references in /includes/classes/observers/class.checkout_one_observer.php on line 690.

    Line 567 warning is gone, by changing the code provided by Lat9 in the previous posts.

  2. #2
    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
    Ok. I found out why my plug-in didn't show up. After the plug-in is installed, two settings need to be changed manually:

    Enable One-Page Checkout?
    False => True

    Enable Guest Checkout?
    False => True

    Now it works, other than the warning log generated:

    --> PHP Warning: var_export does not handle circular references in /includes/classes/OnePageCheckout.php on line 744.

    When debug is ON, I received the following warning:

    --> PHP Warning: var_export does not handle circular references in /includes/classes/observers/class.checkout_one_observer.php on line 690.

    Line 567 warning is gone, by changing the code provided by Lat9 in the previous posts.
    What version of PHP and Zen Cart? What payment and shipping methods are installed?

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

    Default Re: One-Page Checkout [Support Thread]

    Sorry. zen cart 1.57d with php 7.4.

    Shipping modules I'm using are: FedEx (fedexwebservices), USPS (k11), table and store pickup.

    Payment modules I'm using are: PayPal pro (US), paypal express and check/money order. paypal standard is installed but not used.

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

    Default Re: One-Page Checkout [Support Thread]

    This is a real edge case, just reporting it in case you are working in this area and have an opportunity to fix.

    On the checkout_one page, press the Edit button for Billing/Shipping Address.
    Add a new address in a different country, press Save Changes.
    Shipping does not reflect the new zone.

    If you use the dropdown for saved addresses after pressing the edit button, the shipping correctly reflects the selected country's zone, it just fails on adding a new address.
    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.

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

    Default Re: One-Page Checkout [Support Thread]

    I did some tests on my site. This plug-in is slow. Here is what I found.

    Under the checkout page, if I selected a different shipping method in the shipping quote section, jquery-3.5.1.min.js will be reloaded remotely. It will take more than 1000ms to load this script. When I first enter this checkout page (shipping method is not selected), jquery-3.5.1.min.js is always loaded from cache with no delay. Even I refresh the whole checkout page, this script will be always loaded from the cache. But I don't know why it will be force to load from remote server when I choose a different shipping method every time, not from the cache. If this script file can be loaded from cache as well, it will be much faster. There is an option "Load Minified Script Files?" under the plug-in settings page. I tried both true and false, no difference. jquery-3.5.1.min.js will be loaded by both ways. Not sure if it is related to the warning generated before.

    I tried the recommended code for jquery.checkout_one.js from @niccol post, seems better (by the original code, firefox sometimes will pop up slow load warning, new code does not show warning), but still over 1000ms.

    PHP Code:
           // -----
        // Monitor the billing- and shipping-address blocks for changes.
        //
        
    jQuery(document).on('change''#select-address-bill', function(event) {
            
    jQuery('#checkoutPayment > .opc-overlay').addClass('active');
            
    useSelectedAddress('bill'this.value);
        });
        
    jQuery(document).on('change''#select-address-ship', function(event) {
            
    jQuery('#checkoutPayment > .opc-overlay').addClass('active');
            
    useSelectedAddress('ship'this.value);
        }); 
    Last edited by njcyx; 13 May 2022 at 03:40 PM.

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

    Default Re: One-Page Checkout [Support Thread]

    Maybe my last post is not correct. I double checked the results from my browser's network console, when I selected a different shipping method, File called is "act=ajaxOnePageCheckout & method=updateShipping" Initiator is jquery-3.5.1.min.js. So it looks like JS script is pulled and updated something on the background. My site uses usps and fedex modules. When I select different FedEx shipping methods, the processing time is over 1000ms. When I select different USPS shipping methods, the time is about 800-900ms. When I selected store pickup, the time is only ~100ms. So there is a processing difference between two shipping modules. See screenshot attached.
    Click image for larger version. 

Name:	Capture.jpg 
Views:	410 
Size:	39.7 KB 
ID:	19985

  7. #7
    Join Date
    Nov 2009
    Location
    Chennai, India
    Posts
    50
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread] - Square payment issue

    Hi
    I have installed the square payment method. I have two flat rate shipping methods enabled on the site.
    When I change the shipping method at opc, the credit card fields goes missing. They are showing only refreshing the page.
    Can any one please what is wrong.
    Thanks
    Balaji R

  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 njcyx View Post
    Maybe my last post is not correct. I double checked the results from my browser's network console, when I selected a different shipping method, File called is "act=ajaxOnePageCheckout & method=updateShipping" Initiator is jquery-3.5.1.min.js. So it looks like JS script is pulled and updated something on the background. My site uses usps and fedex modules. When I select different FedEx shipping methods, the processing time is over 1000ms. When I select different USPS shipping methods, the time is about 800-900ms. When I selected store pickup, the time is only ~100ms. So there is a processing difference between two shipping modules. See screenshot attached.
    Click image for larger version. 

Name:	Capture.jpg 
Views:	410 
Size:	39.7 KB 
ID:	19985
    Both the USPS and FedEx shipping methods 'pull' their quotes from the shipping 'supplier'. Depending on how busy the usps and/or fedex sites are, that's where the delay is coming from.

 

 

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