Re: One-Page Checkout [Support Thread]
Hello,
I've installed OPC v2.5.3 on ZC 2.1.0-alpha2 with ZCA bootstrap template v3.7.3.
On one page checkout page, when no coupon is used and the coupon field is empty, I click on "Apply" and order gets created.
Is this a known issue and I've missed something in the installation process?
Thank you.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
pishkus
Hello,
I've installed OPC v2.5.3 on ZC 2.1.0-alpha2 with ZCA bootstrap template v3.7.3.
On one page checkout page, when no coupon is used and the coupon field is empty, I click on "Apply" and order gets created.
Is this a known issue and I've missed something in the installation process?
Thank you.
It's neither a known issue nor something you've missed. Thanks for the report. I've created this (https://github.com/lat9/one_page_checkout/issues/423) GitHub issue for tracking the change required.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
... and the correction is staged for OPC's 2.5.4 release; see the issue noted above for the changes required.
3 Attachment(s)
Re: One-Page Checkout [Support Thread]
zencart v1.5.7d, OPC 2.4.6. Guest checkout enabled.
I just noticed that on the create_account page, the state drop-down menu is displayed, but the state field is also displayed at the same time, even US is selected as the country.
If I select another country, which does not have any states defined, then the drop down menu with the "Type a choice below..." and the state field displays, as intended.
If I then select US again, then only the state drop down menu is displayed, as it should be.
So, the first time US is selected as country, then both the state drop down menu and the state field are displayed, but the second time I select US as country its not.
Is this a known issue? Any ideas for a fix?
Attachment 20769
Attachment 20770
Attachment 20771
Re: One-Page Checkout [Support Thread]
That's a base Zen Cart issue with the javascript/jQuery handling of the state vs. state-dropdown selection. That's been corrected in zc200 and it's difficult to see the changes from 1.5.7d since that address-handling jscript file is now consolidated for use on all the various address-gathering pages.
Re: One-Page Checkout [Support Thread]
PHP8.1, zc 1.58a, OPC 2.5.3
I received the following intermittent warning.
PHP Code:
[22-Oct-2024 16:11:52 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=validateAddressValues, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/OnePageCheckout.php(1644): ctype_digit()
#2 /includes/classes/OnePageCheckout.php(1456): OnePageCheckout->validateUpdatedAddress()
#3 /includes/classes/ajax/zcAjaxOnePageCheckout.php(227): OnePageCheckout->validateAndSaveAjaxPostedAddress()
#4 /ajax.php(85): zcAjaxOnePageCheckout->validateAddressValues()
--> PHP Deprecated: ctype_digit(): Argument of type null will be interpreted as string in the future in /includes/classes/OnePageCheckout.php on line 1644.
Line 1644 is the following
if (!ctype_digit($country)) {
PHP Code:
[22-Oct-2024 16:11:52 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=validateAddressValues, IP address: xxxx, Language id 1
#0 /includes/classes/OnePageCheckout.php(1643): zen_debug_error_handler()
#1 /includes/classes/OnePageCheckout.php(1456): OnePageCheckout->validateUpdatedAddress()
#2 /includes/classes/ajax/zcAjaxOnePageCheckout.php(227): OnePageCheckout->validateAndSaveAjaxPostedAddress()
#3 /ajax.php(85): zcAjaxOnePageCheckout->validateAddressValues()
--> PHP Warning: Undefined array key "zone_country_id" in /includes/classes/OnePageCheckout.php on line 1643.
Line 1643 is the following
$country = zen_db_prepare_input($address_values['zone_country_id']);
A few days back, I received the following warning (not from OPC). Not sure if it is related.
PHP Code:
[24-Sep-2024 08:57:51 America/New_York] Request URI: /index.php?main_page=checkout_shipping_address, IP address: xxxx, Language id 1
#0 /includes/modules/checkout_new_address.php(47): zen_debug_error_handler()
#1 /includes/modules/pages/checkout_shipping_address/header_php.php(45): require('/home/...')
#2 /index.php(35): require('/home/...')
--> PHP Warning: Undefined array key "zone_country_id" in /includes/modules/checkout_new_address.php on line 47.
I changed the following code
$country = zen_db_prepare_input($_POST['zone_country_id']);
To
$country = zen_db_prepare_input($_POST['zone_country_id'] ?? '');
Re: One-Page Checkout [Support Thread]
I'm getting recurrent error logs that say the welcome email is not being created - validation failure.
And I've had several folks say they are hitting a 404 error in paypal checkout (yes, I still have the new paypal installed).
The site has been slammed with bots recently and occasionally the server in general slows down under stress. Trying to untangle this is dang difficult.
Any ideas?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
delia
I'm getting recurrent error logs that say the welcome email is not being created - validation failure.
And I've had several folks say they are hitting a 404 error in paypal checkout (yes, I still have the new paypal installed).
The site has been slammed with bots recently and occasionally the server in general slows down under stress. Trying to untangle this is dang difficult.
Any ideas?
When you're posting that you're receiving error logs, it helps me to help you by posting the log's contents.
If the PayPal/RESTful issue is happening a lot, I'll suggest turning on the payment module's logging to gather some 'breadcrumbs' through which the cause of that issue can be determined.
Re: One-Page Checkout [Support Thread]
Hello,
I am having an issue with minimum order which is set at $100.00. If the order is below the messageStack appears indicating that it is below the minimum, however checkout is not being disabled and the order can be processed. if I disable this plugin it works correctly. Running 2.0.1 php 8.2.
Thanks in advance
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
allmart
Hello,
I am having an issue with minimum order which is set at $100.00. If the order is below the messageStack appears indicating that it is below the minimum, however checkout is not being disabled and the order can be processed. if I disable this plugin it works correctly. Running 2.0.1 php 8.2.
Thanks in advance
Where did the minimum-order code come from?