Skip to content

Commit

Permalink
#190: Correct 3-page checkout addresses on zc157
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Jan 4, 2023
1 parent d610743 commit ead05d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/bootstrap/readme.html
Expand Up @@ -284,11 +284,13 @@ <h2>Upgrading</h2>
<h2>Version History</h2>
<p>This section identifies the template's version history and changes, starting with its v2.0.0c release. Prior version changes can be found in the root of the template's distribution zip-file (<code>CHANGELOG.txt</code>).</p>
<ul>
<li>v3.5.1-beta1, 2022-12-28 (lat9, brittainmark)<ul>
<li>v3.5.1-beta2, 2023-01-04 (lat9, brittainmark)<ul>
<li>BUGFIX: Move repetitive calculations outside of products' listing loop for efficiency.</li>
<li>BUGFIX: Customer's existing addresses not rendered (zc157) when changing shipping/payment addresses.</li>
<li>The following files were changed</span>:<ol>
<li>/includes/modules/bootstrap/product_listing.php</li>
<li>/includes/templates/bootstrap/template_info.php</li>
<li>/includes/templates/bootstrap/templates/tpl_modules_checkout_address_book.php</li>
<li>/YOUR_ADMIN/includes/init_includes/init_zca_bootstrap_template_admin.php</li>
</ol></li>
</ul></li>
Expand Down
Expand Up @@ -2,7 +2,7 @@
/**
* tpl_modules_checkout_address_book.php
*
* BOOTSTRAP v3.4.0
* BOOTSTRAP v3.5.1
*
* @package templateSystem
* @copyright Copyright 2003-2009 Zen Cart Development Team
Expand Down Expand Up @@ -48,7 +48,7 @@
// database fields. Determine what values to use when formatting previously-registered
// addresses.
//
$address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $address->fields;
$address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $address;
?>
<div class="card-body p-3">
<address><?php echo zen_address_format(zen_get_address_format_id($address['country_id']), $address_details, true, ' ', '<br>'); ?></address>
Expand Down

0 comments on commit ead05d6

Please sign in to comment.