Hello, again I want to add litle more styling to the checkout_one page but I can't find how to edit the "size value"
<input type="text" name="firstname[bill]" value="ico" size="33" maxlength="32" id="firstname-bill" placeholder="*" required="">
Any hint will be good.
Thank you.
My most recent work: magprom.net
No need for help I just found it, if somebody needs the same thing here is what you should do:
In includes/clases/OnePageCheckout.php around line 1204 (in my case)
You can simply remove $field_len
from here zen_draw_input_field($field_name, $field_value, "$field_len id=\"$field_id\" placeholder=\"$placeholder\" $field_required") . PHP_EOL .
This removes the whole size thing from any input fields, now you can make them responsive with css.
My most recent work: magprom.net
Has anyone had any luck using z_stripe (Zucando Z Stripe Payment Gateway) with One-Page Checkout?
I have the latest version of Zen Cart, OPC, and Z Stripe. Without OPC, Z Stripe works properly. With OPC and using another payment method works. With OPC & Z Stripe, I can't get past the main checkout page. I added z_stripe to the list of Payment Methods Requiring Confirmation like the other Stripe module. When I click on Continue Checkout, the cursor spins and nothing happens... In the Network tab of inspect element, /ajax.php?act=ajaxOnePageCheckout&method=updateShipping is called. No unexpected javascript errors.
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 } ?>
@linuxguy2 I'm confused - is this related to OPC? Didn't I just create a new thread for this topic?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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 Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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.