Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
frank18
Meanwhile, in includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_one_confirmation_default.php I changed this part
PHP Code:
<?php
if ($order->info['shipping_method']) {
?>
<h3 id="checkoutConfirmDefaultShipment"><?php echo HEADING_SHIPPING_METHOD; ?></h3>
<h4 id="checkoutConfirmDefaultShipmentTitle"><?php echo $order->info['shipping_method']; ?></h4>
<?php
}
?>
to this
PHP Code:
<?php
if ($order->info['shipping_method']) {
?>
<h3 id="checkoutConfirmDefaultShipment"><?php echo HEADING_SHIPPING_METHOD; ?></h3>
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link (FILENAME_CHECKOUT_ONE, '', 'SSL') . '">' . zen_image_button (BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
<h4 id="checkoutConfirmDefaultShipmentTitle"><?php echo $order->info['shipping_method']; ?></h4>
<?php
}
?>
Cheers / Frank
Quote:
Originally Posted by
lat9
Thanks, @frank18, I'll look to get this into the next release ... with a caveat:
There are payment modules that replace the shipping-address link during the "normal" checkout_confirmation processing. I'll look to more mimic the full checkout_confirmation page on the OPC confirmation one.
@frank18 ... OK, color me confused!:huh:
That "Edit" button shows in both the checkout_one_confirmation and ajax_checkout_confirmation pages and the plugin doesn't distribute the file /includes/templates/YOUR_TEMPLATE/tpl_checkout_one_confirmation_default.php.
From what I can see, reviewing the GitHub changes, that button was added back in August of 2016; perhaps you've made a template-override version that (somehow) got down-level?
Please advise.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
@frank18 ... OK, color me confused!:huh:
That "Edit" button shows in both the checkout_one_confirmation and ajax_checkout_confirmation pages and the plugin doesn't distribute the file /includes/templates/YOUR_TEMPLATE/tpl_checkout_one_confirmation_default.php.
From what I can see, reviewing the GitHub changes, that button was added back in August of 2016; perhaps you've made a template-override version that (somehow) got down-level?
Please advise.
Well... color me embarrassed :shocking: - I sure had to make changes in that template-override file to meet some requirements of this site!! Doh......
My apologies for creating confusion.
Cheers
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I have reproduced issue#2 (and created an associated GitHub issue); I'll need a bit of time to attempt to reproduce the first.
I have also reproduced issue#1; I'll post back when a solution is available.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I have also reproduced issue#1; I'll post back when a solution is available.
Thanks Lat9. We use a temporary solution, once user unchecks the "same address" checkbox, we will hide this checkbox.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
y051313
Thanks Lat9. We use a temporary solution, once user unchecks the "same address" checkbox, we will hide this checkbox.
I've got the rather extensive changes complete and uploaded to the plugin's GitHub repository, if anyone wants to take a look until I get the chance to package these changes up.
Re: One-Page Checkout [Support Thread]
I've just submitted v1.2.0 to the Zen Cart plugins for review and will post back when it's available for download.
This version contains changes associated with the following GitHub issues:
#79: Correct conditionally-enabling the plugin causes checkout-loop.
#80: Add an Edit button to shopping-cart block on checkout pages.
#83: Unwanted "Your order has changed" message received after applying a credit-class order-total to the order.
#85: Correct checkout-loop after a 100%-off coupon is applied to an order.
#86: Correct "Shipping, same as Billing" processing.
... and various documentation edits.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.2.0 to the Zen Cart plugins for review and will post back when it's available for download.
This version contains changes associated with the following GitHub issues:
#79: Correct conditionally-enabling the plugin causes checkout-loop.
#80: Add an Edit button to shopping-cart block on checkout pages.
#83: Unwanted "Your order has changed" message received after applying a credit-class order-total to the order.
#85: Correct checkout-loop after a 100%-off coupon is applied to an order.
#86: Correct "Shipping, same as Billing" processing.
... and various documentation edits.
OPC v1.2.0 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Hi lat9
I'v upgraded to v1.2.0. When I uncheck the "Shipping Address, Same as Billing?" checkbox, the shipping option list is not updated.
I saw there was a request to page "/ajax.php?act=ajaxOnePageCheckout&method=updateShipping", but the response is messy code like "�š[{�a{�a{�a{�a{�a{�a{'
The returning array in the debug log looks correct.
Any clues?
Thanks
Davis
Re: One-Page Checkout [Support Thread]
Davis, does your store use a custom template? Have you customized the tpl_checkout_one_default.php template in your custom template?
If so, did you merge the template changes (highlighted in the readme) into your template-override version?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Davis, does your store use a custom template? Have you customized the tpl_checkout_one_default.php template in your custom template?
If so, did you merge the template changes (highlighted in the readme) into your template-override version?
Hi lat9
I've replaced all files in the new version.
Seems the issue is with the ob_flush () function on line 185 in file /includes/classes/ajax/zcAjaxOnePageCheckout.php. If I comment this line out, then the module works well.
Best
Davis