Re: One-Page Checkout [Support Thread]
I've just tested OPC guest checkouts on my testshop with Paypal express, and with Square (creating a new App for the testshop), works wonderfully.
I have a question about the Paypal setup though, could not find any mention of this in the documentation.
For standard 3-page checkout processing, the Paypal return URL is supposed (I think) to be set to:
https://www.mysite.com/MY_SHOP/index...eckout_process
For OPC, is this supposed to be kept as is, or better changed to something specific to OPC?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
gernot
I've just tested OPC guest checkouts on my testshop with Paypal express, and with Square (creating a new App for the testshop), works wonderfully.
I have a question about the Paypal setup though, could not find any mention of this in the documentation.
For standard 3-page checkout processing, the Paypal return URL is supposed (I think) to be set to:
https://www.mysite.com/MY_SHOP/index...eckout_process
For OPC, is this supposed to be kept as is, or better changed to something specific to OPC?
For OPC, it's to be kept as-is.
OPC provides a combination of the checkout_shipping, checkout_payment and checkout_confirmation pages. The actual order-processing remains the same.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
For OPC, it's to be kept as-is.
OPC provides a combination of the checkout_shipping, checkout_payment and checkout_confirmation pages. The actual order-processing remains the same.
Thank you very much indeed!
Re: One-Page Checkout [Support Thread]
I've just submitted v2.3.2 of One-Page Checkout to the Zen Cart moderators for review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#251: Missing #otshipping in zc157.
#252: Guest Checkout, status-update emails still refer to account_history_info.
#253: Changes to a customer's address aren't recorded.
#254: Correct PHP warning if a store's "Gender" changes from not-required to required.
#255: Ensure that the "Add to Address Book" checkbox's visibility is correctly updated.
#256: Address-entry, account for browser autofill and always use a state dropdown if the country has zones.
Note: This version has been validated with the upcoming Zen Cart 1.5.7-alpha release.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v2.3.2 of One-Page Checkout to the Zen Cart moderators for review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#251: Missing #otshipping in zc157.
#252: Guest Checkout, status-update emails still refer to account_history_info.
#253: Changes to a customer's address aren't recorded.
#254: Correct PHP warning if a store's "Gender" changes from not-required to required.
#255: Ensure that the "Add to Address Book" checkbox's visibility is correctly updated.
#256: Address-entry, account for browser autofill and always use a state dropdown if the country has zones.
Note: This version has been validated with the upcoming Zen Cart 1.5.7-alpha release.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095
Re: One-Page Checkout [Support Thread]
Thank you so much! That is a lot of work in there.
Re: One-Page Checkout [Support Thread]
The account_create page shows the drop-down for state correctly.
In 2.3.1 the state was not available in the shipping/billing address change screen.
In 2.3.2 the field is now visible as per the changelog, many thanks, but it is not a drop-down for me, probably because I am using multi-language.
I'll see if I can fairly quickly port the jscript functions and template changes from the standard 3-page checkout, and report back.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
gernot
The account_create page shows the drop-down for state correctly.
In 2.3.1 the state was not available in the shipping/billing address change screen.
In 2.3.2 the field is now visible as per the changelog, many thanks, but it is not a drop-down for me, probably because I am using multi-language.
I'll see if I can fairly quickly port the jscript functions and template changes from the standard 3-page checkout, and report back.
@gernot, what's your store's setting for that Customers::Always display state as dropdown value?
Re: One-Page Checkout [Support Thread]
Hi lat9, it is set to true.
Configuration -> Customer Details -> State - Always display as pulldown? -> true
I have jscript on the create_account and all other address_book related pages to handle the English and Japanese with multilanguage, converting the codes to the corresponding language text (since in Zen Cart the state code use is as far as I am concerned a bug).
In OPC it seems like create_account is used the same as the original Zen Cart page, so my customizations work, but when it comes to editing addresses in the one_page_checkout page with the tpl_modules_{billing,shipping}_address template I presume the code is not available.
I'll have to check exactly what page the standard flow uses there and see what changes I have there.
I do not get any error either though, so there is no conflict as far as I can tell.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
gernot
Hi lat9, it is set to true.
Configuration -> Customer Details -> State - Always display as pulldown? -> true
I have jscript on the create_account and all other address_book related pages to handle the English and Japanese with multilanguage, converting the codes to the corresponding language text (since in Zen Cart the state code use is as far as I am concerned a bug).
In OPC it seems like create_account is used the same as the original Zen Cart page, so my customizations work, but when it comes to editing addresses in the one_page_checkout page with the tpl_modules_{billing,shipping}_address template I presume the code is not available.
I'll have to check exactly what page the standard flow uses there and see what changes I have there.
I do not get any error either though, so there is no conflict as far as I can tell.
For the country/zones in the OPC address-edits, there's a json_encoded array created by the OnePageCheckout class' getCountriesZonesJavascript method that is subsequently used by the jQuery present in /includes/modules/pages/checkout_one/jquery.checkout_one_addr.js:
PHP Code:
// -----
// Creates the json-formatted array that maps countries to zones, for use in the
// customer address-forms when dropdown states are enabled.
//
public function getCountriesZonesJavascript()
{
$countries = $GLOBALS['db']->Execute(
"SELECT DISTINCT zone_country_id
FROM " . TABLE_ZONES . "
INNER JOIN " . TABLE_COUNTRIES . "
ON countries_id = zone_country_id
AND status = 1
ORDER BY zone_country_id"
);
$c2z = array();
while (!$countries->EOF) {
$current_country_id = $countries->fields['zone_country_id'];
$c2z[$current_country_id] = array();
$states = $GLOBALS['db']->Execute(
"SELECT zone_name, zone_id
FROM " . TABLE_ZONES . "
WHERE zone_country_id = $current_country_id
ORDER BY zone_name"
);
while (!$states->EOF) {
$c2z[$current_country_id][$states->fields['zone_id']] = $states->fields['zone_name'];
$states->MoveNext();
}
$countries->MoveNext();
}
if (count($c2z) == 0) {
$output_string = '';
} else {
$output_string = 'var c2z = \'' . json_encode($c2z) . '\';' . PHP_EOL;
}
return $output_string;
}
I'd be interested to know what modifications you needed to make to the 'stock' Zen Cart's state-dropdown handling.