Yes I know that, but still I think I can make it work. Yourstore support offered me to install this plugin for alot of money. This template use unique method to show header and I think this is the main think why plugin isn't working properly. With your knowledge I think it's possible to merge those two files. But maybe you know better where is the problem. Thanks
I've completed the changes for One-Page Checkout, v2.1.0, and have packaged up v2.1.0-beta5 for download from the plugin's GitHub repository. Do not deploy this on a live site!
I'd appreciate any/all beta-testing that the community can provide, especially with respect to the installation/upgrade documentation ... which has changed significantly. Please report any issues found (or suggestions for improvement) as GitHub issues on that repository.
PHP 7.2
ZC 156a
OPC v2.1.0-beta5
I've been testing with this build but I'm only using "PO Number Payment and Flat Rate Shipping" so I'm not covering the corner cases.
The documentation seems to be OK if you read it carefully.
The only issue I have is:
The "Shipping Address" drop list on the checkout page is listing the addresses in the order I entered them NOT in any alphabetical order.
Googled and checked the forums but can't come up with a solution.
Any clues on how to make that sort on Company name would be appreciated.
Thanks
FWIW, I'm up to OPC v2.1.0-beta8.
You'll need to edit (and make a copy of) /includes/classes/OnePageCheckout.php to edit its formatAddressBookDropdown method:
Note, though, that this class is very 'volatile' as it's the heart of OPC's processing.Code:public function formatAddressBookDropdown() { $select_array = array(); if (isset($_SESSION['customer_id']) && !$this->isGuestCheckout() && !$this->customerAccountNeedsPrimaryAddress()) { // ----- // Build up address list input to create a customer-specific selection list of // pre-existing addresses from which to choose. // $addresses = $GLOBALS['db']->Execute( "SELECT address_book_id FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = " . (int)$_SESSION['customer_id'] . " ORDER BY address_book_id" ); if (!$addresses->EOF) { $select_array[] = array( 'id' => 0, 'text' => TEXT_SELECT_FROM_SAVED_ADDRESSES ); } while (!$addresses->EOF) { $select_array[] = array( 'id' => $addresses->fields['address_book_id'], 'text' => str_replace("\n", ', ', zen_address_label($_SESSION['customer_id'], $addresses->fields['address_book_id'])) ); $addresses->MoveNext(); } } return $select_array; }
Bookmarks