Zen Cart Logo
Forums / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

Views: 629,023

Results 2,341 to 2,360 of 3,073
22 Jun 2022, 7:50 PM
#2341
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

One-Page Checkout [Support Thread]

gtgeorge:

Was this issue corrected? I recently installed version 2.4.1 and still experience this issue.
FWIW, noting that the previously-reported issue was in this (https://www.zen-cart.com/showthread.php?220781-One-Page-Checkout-Support-Thread&p=1387125#post1387125) posting.

I've not yet had a chance to reproduce, hopefully in the next few days.

22 Jun 2022, 7:55 PM
#2342
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

lolwaut:

A customer has reported a bug:

When credit card information is entered on the OPC page then a coupon is subsequently applied to the order, OPC clears the payment information (CC# etc) from the payment section. The customer has to then re-enter the payment information.

A workaround to this would be to put the DISCOUNT COUPON section before the payment section. This would eliminate most instances of this happening since the customer would TYPICALLY apply the coupon before entering their payment info, if the coupon section preceded the payment section.

But, the better fix would be to not have it happen at all.

Can I report this as a bug?
You can make a template-override version of /includes/templates/template_default/templates/tpl_checkout_one_default.php to re-arrange the various elements of that page and move the coupon/gift-voucher element before the payment information.

Since the credit-card information is sensitive, it's not passed back-and-forth between the data-entry page (checkout_one) and its associated confirmation page (checkout_one_confirmation) and the confirmation page is where the coupon/gv handling determines whether/not the information entered is valid.

22 Jun 2022, 8:27 PM
#2343
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You can make a template-override version of /includes/templates/template_default/templates/tpl_checkout_one_default.php to re-arrange the various elements of that page and move the coupon/gift-voucher element before the payment information.

Since the credit-card information is sensitive, it's not passed back-and-forth between the data-entry page (checkout_one) and its associated confirmation page (checkout_one_confirmation) and the confirmation page is where the coupon/gv handling determines whether/not the information entered is valid.

Thank you. Does it make sense for you to incorporate this change in a future update?

22 Jun 2022, 8:37 PM
#2344
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

lat9:

A "standard" OPC installation displays a gif during the order processing. Perhaps you don't have /includes/templates/template_default/images/confirmation_one_loading.gif?

This seems slightly better in 2.4.2, however still lags a bit on Square.

The confirmation_one_loading.gif loads and did on the previous install which was 2.4.0, however when the screen greys and then loads the gif there is a bit of a delay. It is the grey overlay screen just before the loading gif loads. It hangs a little, but like I said seems better in 2.4.2. I have had customers say they have got stuck on the greyed out screen just before the loading gif loads. It obviously depends on their internet connection as well. But if it hangs for a while then they are liable to click off it. The ideal solution would be to make it quicker somehow. However another solution would be to apply a message on the grey overlay screen saying 'Please Wait, your payment is processing' before the loading gif loads. Then they are less likely to click off.

22 Jun 2022, 8:42 PM
#2345
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi @lat9, thanks for your reply. Under this directory, I can only find "tpl_ajax_checkout_confirmation_default.php" but not "tpl_ajax_checkout_confirmation.php". Anyway this file is unchanged.

This duplicated order issue is still rare to happen on my end. I suspected that it might be related to the slow site/plug-in. But anyway I will report if it goes worse. I will add a note asking the customer to click the "submit order" button just once. Maybe it will help.

Thanks again.

22 Jun 2022, 9:51 PM
#2346
gtgeorge avatar

gtgeorge

New Zenner

Join Date:
Mar 2005
Posts:
53
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

22 Jun 2022, 11:01 PM
#2347
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

gtgeorge:

Actually you stated you were able to reproduce it in post:

https://www.zen-cart.com/showthread.php?220781-One-Page-Checkout-Support-Thread&p=1387195#post1387195

And then posted:

https://www.zen-cart.com/showthread.php?220781-One-Page-Checkout-Support-Thread&p=1387566#post1387566

The issue was addressed on github and I thought fixed unless I misunderstand?

https://github.com/lat9/one_page_checkout/issues/314
It's been a long couple of months ... in what way does the issue persist on your site?

23 Jun 2022, 4:15 PM
#2348
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi @lat9, I gathered some information for the recent duplicated orders after OPC is installed:

Example 1:
Paypaldp
fedexwebservices

Order placed time:
06/23/2022 11:37:35
06/23/2022 11:37:36
06/23/2022 11:37:37

These orders are not marked as guest-checkout
Domestic shipping address

Example 2:
Paypaldp
fedexwebservices

Order placed time:
06/22/2022 19:59:29
06/22/2022 19:59:30

These orders are not marked as guest-checkout
International shipping address

Example 3:
Paypaldp
fedexwebservices

Order placed time:
06/02/2022 17:27:30
06/02/2022 17:27:31
06/02/2022 17:27:31

These orders are marked as guest-checkout
Domestic shipping address

So it looks like the duplicated order only occurs when the customer is paid by credit card (paypaldp) and selected FedEx shipping method (which takes a little bit longer time to load than USPS).

Do you think increasing AJAX timeout time will help? Currently it is set to 5s by default.

23 Jun 2022, 9:07 PM
#2349
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

njcyx:

Hi @lat9, I gathered some information for the recent duplicated orders after OPC is installed:

Example 1:
Paypaldp
fedexwebservices

Order placed time:
06/23/2022 11:37:35
06/23/2022 11:37:36
06/23/2022 11:37:37

These orders are not marked as guest-checkout
Domestic shipping address

Example 2:
Paypaldp
fedexwebservices

Order placed time:
06/22/2022 19:59:29
06/22/2022 19:59:30

These orders are not marked as guest-checkout
International shipping address

Example 3:
Paypaldp
fedexwebservices

Order placed time:
06/02/2022 17:27:30
06/02/2022 17:27:31
06/02/2022 17:27:31

These orders are marked as guest-checkout
Domestic shipping address

So it looks like the duplicated order only occurs when the customer is paid by credit card (paypaldp) and selected FedEx shipping method (which takes a little bit longer time to load than USPS).

Do you think increasing AJAX timeout time will help? Currently it is set to 5s by default.
Increasing that AJAX timeout *might *help, but without understanding the underlying cause of the duplicates, it's a patch at best. Where did you find that fedexwebservices shipping method?

24 Jun 2022, 1:02 PM
#2350
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Increasing that AJAX timeout *might *help, but without understanding the underlying cause of the duplicates, it's a patch at best. Where did you find that fedexwebservices shipping method?

Hi @lat9, thanks for your reply.

I just increased this time from 5s to 6s and see how it works.

I downloaded the latest FedEx plug-in from numinix. I'm using v1.8.1 now.

https://www.numinix.com/zen-cart-plugins-modules-shipping-c-179_250_373_163/fedex-web-services-shipping

I checked my server log and my site updated the latest fedex module on May 18, 2022. I installed the latest OPC back on my site on June 2, 2022. Actually the duplicated order issue is started on June 2, 2022. No issues between May 18 and June 2.

I updated my site to 1.57d on April 18, so my paypaldp module got updated at that time.

24 Jun 2022, 3:37 PM
#2351
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

Since they only show 1.5.6c supported, you may want to contact them for an upgrade.

27 Jun 2022, 2:38 PM
#2352
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

dbltoe:

Since they only show 1.5.6c supported, you may want to contact them for an upgrade.

Hi dbltoe, thanks for your reply. I believe the latest v1.8.1 fedexwebservices module is compatible with zc 1.57d & php 7.4, because I used it for 2 weeks without OPC and it worked well. No warning log generated and no duplicated orders were received.

I created an issue via bitbucket/numinix asking for fedexwebservices compatibility, but I don't think they will reply to it in the near future.

27 Jun 2022, 3:10 PM
#2353
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

You might want to turn on the debug for a few days to see what results you get.

27 Jun 2022, 5:07 PM
#2354
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

dbltoe:

You might want to turn on the debug for a few days to see what results you get.

Thanks. Do you mean the debug for OPC? I will turn it on and I will report it later if any new duplicated orders.

27 Jun 2022, 5:10 PM
#2355
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

Yep, I think that's what lat9 would say. She's a tad busy right now.:P

27 Jun 2022, 5:16 PM
#2356
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

dbltoe:

Yep, I think that's what lat9 would say. She's a tad busy right now.:P

I see. Thanks for your help!

30 Jun 2022, 8:10 PM
#2357
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

BUG REPORT: After clicking the "Apply" button in the GIFT CERTIFICATE section of OPC, an error is displayed " Please confirm the terms and conditions bound to this order by ticking the box below."

This error should only display when the CONFIRM ORDER button is clicked, not when the APPLY button for a gift certificate.

Is this a known bug? Is there a fix?

Thanks!

1 Jul 2022, 10:45 AM
#2358
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

lolwaut:

BUG REPORT: After clicking the "Apply" button in the GIFT CERTIFICATE section of OPC, an error is displayed " Please confirm the terms and conditions bound to this order by ticking the box below."

This error should only display when the CONFIRM ORDER button is clicked, not when the APPLY button for a gift certificate.

Is this a known bug? Is there a fix?

Thanks!
What version of OPC?

1 Jul 2022, 11:34 AM
#2359
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

lat9:

What version of OPC?
Never mind, this (https://github.com/lat9/one_page_checkout/issues/340) GitHub tracking issue created.

5 Jul 2022, 4:14 PM
#2360
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi @lat9, my site received several errors during the holiday, from one Australia customer.

[02-Jul-2022 09:31:55 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: 1.129.27.xxx
#1 trigger_error() called at [/public_html/includes/classes/OnePageCheckout.php:1058]
#2 OnePageCheckout->getAddressValuesFromDb() called at [/public_html/includes/classes/OnePageCheckout.php:1031]
#3 OnePageCheckout->getAddressValues() called at [/public_html/includes/templates/template_default/templates/tpl_modules_opc_address_block.php:26]
#4 require(/public_html/includes/templates/template_default/templates/tpl_modules_opc_address_block.php) called at [/public_html/includes/templates/template_default/templates/tpl_modules_opc_shipping_address.php:31]
#5 require(/public_html/includes/templates/template_default/templates/tpl_modules_opc_shipping_address.php) called at [/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php:54]
#6 require(/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:185]
#7 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
--> PHP Fatal error: unknown address_book_id () for customer_id (109389) in /public_html/includes/classes/OnePageCheckout.php on line 1058.

I received 7 log files and 6 files are the above content. One is the following:

[02-Jul-2022 09:39:35 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping, IP address: 1.129.27.xxx
#1 trigger_error() called at [/public_html/includes/classes/OnePageCheckout.php:992]
#2 OnePageCheckout->setTempShippingToBilling() called at [/public_html/includes/classes/ajax/zcAjaxOnePageCheckout.php:56]
#3 zcAjaxOnePageCheckout->updateShipping() called at [/public_html/ajax.php:85]
--> PHP Fatal error: Invalid access; $_SESSION['billto'] is not set. in /public_html/includes/classes/OnePageCheckout.php on line 992.

Here are the codes near line 1058:

        if ($address_info->EOF) {
            trigger_error("unknown address_book_id (" . $address_book_id . ') for customer_id (' . $_SESSION['customer_id'] . ')', E_USER_ERROR);
            exit();
        }

My OPC debug is ON so I have the log file at that time. Please DM me your email so I can send it to you.

Thanks in advance.