Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
That extra / was a copy/paste boo-boo. You might want to add a space to the list of characters that can be repeated, though.
Discovered I also need to allow only "A-Za-z0-9 " when customers enter addresses in the address book.
Couldn't find any exact examples and tried several different ways/tests but can't make it work
Thanks,
FILE:
tpl_modules_address_book_details.php
Around line 45
Code:
<?php
if (ACCOUNT_COMPANY == 'true') {
?>
<label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
<br class="clearBoth" />
<?php
}
?>
Re: One-Page Checkout [Support Thread]
@linuxguy2 I'm confused - is this related to OPC? Didn't I just create a new thread for this topic?
Re: One-Page Checkout [Support Thread]
Cindy, in the latest version, the Billing Address is displayed as form data that can be altered. Can this be changed to just straight display (optionally with an edit button taking the customer to the billing address page)?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
swguy
Cindy, in the latest version, the Billing Address is displayed as form data that can be altered. Can this be changed to just straight display (optionally with an edit button taking the customer to the billing address page)?
That billing-address display essentially replaces the checkout_billing_address page. If a customer has pre-defined addresses, there's a dropdown that contains those addresses from which they can select. That form, for logged-in customers, includes a checkbox to allow the customer to add another address to their address book.
Having the navigation go 'off-page' (i.e. to the standard checkout_[billing|shipping]_address page) is not in the spirit of a one-page checkout environment.
1 Attachment(s)
Re: One-Page Checkout [Support Thread]
Your point is well taken about the spirit of OPC. I may not have explained well what I am seeing though - in the picture attached to this post, you can see that rather simply display the billing address (with a checkbox to add a new one, or perhaps a dropdown to select other ones), you see the address as form fields. Was this intended, and is there a way to turn it off?
Re: One-Page Checkout [Support Thread]
Understood. I've been considering displaying a logged-in customer's current address as a simple "address" display, with an "Update" button to open up that as a form-entry field (to cut down on-screen real-estate), but haven't had the time to pursue.
Re: One-Page Checkout [Support Thread]
Understood. Just making sure it wasn't something that was messed up by pre-existing changes to the cart or perhaps something with a switch already built.
Thank you for your hard and excellent work on this mod!
Re: One-Page Checkout [Support Thread]
Created the following issue on the OPC GitHub repository for tracking: https://github.com/lat9/one_page_checkout/issues/227
Re: One-Page Checkout [Support Thread]
Some hideous css (from a company who shall not be named) forced me to override the styling of alerts for the state and country fields to prevent them from going to the next line.
#stateZone-bill + .alert,
#country-bill + .alert
{
width: 1%;
margin-bottom: 0px;
padding-bottom: 0px;
}
Pretty nasty, but I couldn't think of anything nicer.
Re: One-Page Checkout [Support Thread]
I'm in a loop with "Your order's details have changed. Please review the current values and re-submit." on every Confirm Order.
I did copy JS files from includes/modules/pages/checkout_payment to includes/modules/pages/checkout_one. Should I generate a log file or do something else?