I have a client running ZC v. 1.5.7b and we just discovered an issue with the checkout process. I'm not sure if this is the intended behavior but, in any case, both of us found this confusing. If a customer already has five addresses in their address book, the behavior when clicking "Change Address" on step 1 of checkout is not ideal. The form to add a new address is not shown but neither is any explaining text about being at max address book size.
My client's site does not have any customizations to the template file for this page so just includes/templates/template_default/templates/tpl_checkout_shipping_address_default.php is loading. The relavant code seems to be this:
Code:
<?php
if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
echo zen_draw_form('checkout_address', zen_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'), 'post', 'class="group"');
/**
* require template to display new address form
*/
require($template->get_template_dir('tpl_modules_checkout_new_address.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_checkout_new_address.php');
?>
<div class="buttonRow forward"><?php echo zen_draw_hidden_field('action', 'submit') . zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
</form>
<?php
}
If I'm missing something about this, I'd be curious to know more, but it seems like there should be some kind of "else" statement to display an explanation that the customer must delete an address book entry before being able to add a new one?
Anyone else run into this before?
Thanks!
Bookmarks