Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
See this (
https://github.com/lat9/one_page_checkout/issues/165) GitHub issue; let me know if that corrects the issue when a store doesn't have
ot_gv enabled.
There was a change made for zc156 such that an empty array (instead of false) is being returned in that case, that's what the change for that issue addresses.
Thanks. I've applied the change and will check back to see if the error goes away.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Good catch! I've opened an issue on OPC's GitHub repository to track the change (
https://github.com/lat9/one_page_checkout/issues/171).
I'll note, though, that dropdown list should be shown if the customer has more than 1 (not 2) addresses previously recorded.
Hmm. When I did it, I had to set it to 2 for it to work. I concluded that it was counting "Select from saved addresses" as an address.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
archelaus
Hmm. When I did it, I had to set it to 2 for it to work. I concluded that it was counting "Select from saved addresses" as an address.
Arggh, you're quite right; let me get that corrected on GitHub.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Per the plugin's readme, the YourStore template is known to be incompatible with One-Page Checkout.
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
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
MrSteeiii
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
The YourStore template (and its ThemeForest siblings) gave me quite the headache when I investigated the interoperability a couple of years ago. It's not something that I'm willing to offer as a free service.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
The YourStore template (and its ThemeForest siblings) gave me quite the headache when I investigated the interoperability a couple of years ago. It's not something that I'm willing to offer as a free service.
I am willing to pay some money for your help. Can you tell me how much this can cost for me?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
MrSteeiii
I am willing to pay some money for your help. Can you tell me how much this can cost for me?
PM (Private Message) sent.
Re: One-Page Checkout [Support Thread]
:beta: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.
Re: One-Page Checkout [Support Thread]
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
Re: One-Page Checkout [Support Thread]
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:
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;
}
Note, though, that this class is very 'volatile' as it's the heart of OPC's processing.