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.
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 ();
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.
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.
@Website Rob, the as-shipped code fragment reads:
@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.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 ();
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
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?
Bookmarks