Page 43 of 280 FirstFirst ... 3341424344455393143 ... LastLast
Results 421 to 430 of 2799
  1. #421
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Davis, it sounds like you're missing the tpl_modules_checkout_one_shipping.php file from either your template_default/templates directory or it's been damaged in some way.

  2. #422
    Join Date
    Mar 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Davis, it sounds like you're missing the tpl_modules_checkout_one_shipping.php file from either your template_default/templates directory or it's been damaged in some way.
    Hi lat9

    I've upload tpl_modules_checkout_one_shipping.php file again, but still doesn't work.

    Is it necessary to add ob_flush (); line? If I remove this line, then the plugin works well.

    PHP Code:
    require ($template->get_template_dir ('tpl_modules_checkout_one_shipping.php'DIR_WS_TEMPLATE$current_page_base'templates'). '/tpl_modules_checkout_one_shipping.php');
                        
    $shipping_html ob_get_clean ();
    return 
    $shipping_html;
    ob_flush (); 

  3. #423
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Dave, your version of /includes/classes/ajax/zcAjaxOnePageCheckout.php is the one that's apparently damaged. In the as-shipped version there is no "return $shipping_html;" statement at that point of the code.

  4. #424
    Join Date
    Mar 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Dave, your version of /includes/classes/ajax/zcAjaxOnePageCheckout.php is the one that's apparently damaged. In the as-shipped version there is no "return $shipping_html;" statement at that point of the code.
    sorry, my mistake, return $shipping_html is added for debug purpose. After removing this line, I still got the messy code in the response.

  5. #425
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by y051313 View Post
    Is it necessary to add ob_flush (); line? If I remove this line, then the plugin works well.

    PHP Code:
    require ($template->get_template_dir ('tpl_modules_checkout_one_shipping.php'DIR_WS_TEMPLATE$current_page_base'templates'). '/tpl_modules_checkout_one_shipping.php');
                        
    $shipping_html ob_get_clean ();
    return 
    $shipping_html;
    ob_flush (); 
    Although I'm not familiar with this module and only have the small piece of code posted to go by, I too, wonder about the ob_flush ();
    Usually, if used, it is at the beginning of the code and not the end.

    lat9 can give more details on it but I would say if it corrects your problem and doesn't create any new ones, then remove it.

  6. #426
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    @Website Rob, the as-shipped code fragment reads:
    Code:
                        ob_start ();
                        require ($template->get_template_dir ('tpl_modules_checkout_one_shipping.php', DIR_WS_TEMPLATE, $current_page_base, 'templates'). '/tpl_modules_checkout_one_shipping.php');
                        $shipping_html = ob_get_clean ();
                        ob_flush ();
    @y051313, I used the credentials you sent on April 15 to login and went to checkout. It looks to me like the AJAX request/response information is correctly flowing properly on your beta .net site. I didn't click through to completion, since there was a product in the test-user's cart when I got there. Please advise.

  7. #427
    Join Date
    Mar 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    @Website Rob, the as-shipped code fragment reads:
    Code:
                        ob_start ();
                        require ($template->get_template_dir ('tpl_modules_checkout_one_shipping.php', DIR_WS_TEMPLATE, $current_page_base, 'templates'). '/tpl_modules_checkout_one_shipping.php');
                        $shipping_html = ob_get_clean ();
                        ob_flush ();
    @y051313, I used the credentials you sent on April 15 to login and went to checkout. It looks to me like the AJAX request/response information is correctly flowing properly on your beta .net site. I didn't click through to completion, since there was a product in the test-user's cart when I got there. Please advise.
    Hi lay9

    I've removed the ob_flush (); line on the test site, that's why you didn't see any error.

    I've added ob_flush(); back, now when you check/uncheck the "Shipping Address, Same as Billing?" checkbox, you will see error msg.

    error: status=parsererror, errorThrown = SyntaxError: Unexpected end of JSON input, override: [object Object]

    Best
    Davis

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

    Default Re: One-Page Checkout [Support Thread]

    There's a bunch of other AJAX-related handling on that site, @y051313. Have you checked that the version of /jscript/jscript_framework.php in your lite_red template's folder is the version shipped with OPC?

  9. #429
    Join Date
    Mar 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    There's a bunch of other AJAX-related handling on that site, @y051313. Have you checked that the version of /jscript/jscript_framework.php in your lite_red template's folder is the version shipped with OPC?
    Yes, I'm sure. I've re-upload jscript_framework.php file in my own template and template_default folder

  10. #430
    Join Date
    Mar 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by y051313 View Post
    Yes, I'm sure. I've re-upload jscript_framework.php file in my own template and template_default folder
    Hi lat9

    It turns out the issue is caused by the gzip setting in the zen cart admin page. If this option is set to off, then the plugin works.

    ob_flush and gzip can't be used together.

    Best
    Davis

 

 

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