Does it update correctly if you change back to the conventional 3 page checkout?
Printable View
@fjbern1943, thanks for the update that applying the Zen Cart 1.5.5a corrections to the jscript_framework.php file corrected your issues (make sure that you also updated the /ajax.php file since you're running Zen Cart 1.5.4).
I've just submitted v1.0.1 to the plugins area; it will be available for download once reviewed.
This version contains the following changes; the change numbers identify the issue numbers from the plugin's GitHub repository:
#1: Add check for customer's authorization level
#2: AJAX changes apply to Zen Cart 1.5.5, too.
#3: Add support for the terms&conditions block.
#4: Add instructions for updating ROBOTS_PAGES_TO_SKIP
#5: Correction for payment methods that insert form methods (like eWay) on the confirmation page
#6: Shipping not calculated/selected on initial entry to checkout on some stores
#7: Remove unwanted extra double-quote in checkout_one_confirmation page's template
#8: Set shipping/payment button edit-flags on confirmation page
#9: Correct progress indicator not showing on confirmation page.
#10: Update debug.
#11: Pre-integration with Products' Options' Stock Manager.
Using One-Page Checkout with PDP (Product Delivery By Postcode) Shipping Module
If you are using my shipping module 'Product Delivery By Postcode (PDP)' https://www.zen-cart.com/showthread....-(PDP)-Support ) you need to make 2 additions to the One-Page Checkout module.
1. File includes/modules/pages/checkout_one/header_php.php
After line 203 insert
2. File includes/templates/template_default/tpl_checkout_one_default.phpPHP Code:
// bof postcode allowed (PDP)
$check_delivery_postcode = $order->delivery['postcode'];
// shorten UK / Canada postcodes to use first part only
$check_delivery_postcode = zen_get_UKPostcodeFirstPart($check_delivery_postcode);
// now check db for allowed postcodes and enable / disable relevant shipping modules
if (in_array($check_delivery_postcode,explode(",", MODULE_SHIPPING_LOCALDELIVERY_POSTCODE))) {
// continue as normal
} else {
$localdelivery = false;
}
if (in_array($check_delivery_postcode,explode(",", MODULE_SHIPPING_STOREPICKUP_POSTCODE))) {
// continue as normal
} else {
$storepickup = false;
}
// eof postcode allowed (PDP)
Find
and change toCode:<h2 id="checkoutShippingHeadingMethod"><?php echo TITLE_NO_SHIPPING_AVAILABLE; ?></h2>
<div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_NO_SHIPPING_AVAILABLE; ?></div>
Cheers / FrankPHP Code:
<h2 id="checkoutShippingHeadingMethod"><?php echo TITLE_NO_SHIPPING_AVAILABLE; ?></h2>
<!--bof local delivery only alert -->
<div id="cartLocalText">
<?php
// check if product marked local delivery only is in cart
global $cart ;
$chk_local_delivery_only = $_SESSION['cart']->in_cart_check('product_is_local_delivery','1');
if ($chk_local_delivery_only) {
echo TEXT_PRODUCT_LOCAL_DELIVERY_ONLY;
}
?>
</div>
<!--eof local delivery only alert -->
<div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_NO_SHIPPING_AVAILABLE; ?></div>
Thanks for that, Frank. I'll just note that any changes to the One-Page Checkout's default templates should be treated just like any other template-override, i.e. copy the file from /includes/templates/template_default/templates into /includes/templates/YOUR_TEMPLATE/templates before making those changes!
Otherwise, those changes (like the ones to the page's header_php.php) will be overwritten on a plugin update (unless you remember where you made those changes).