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

One-Page Checkout [Support Thread]

Views: 633,121

Results 2,581 to 2,600 of 3,107
2 Mar 2023, 8:53 PM
#2581
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

One-Page Checkout [Support Thread]

I am just posting the current working solution for the error: "Your order's details have changed. Please review the current values and re-submit."

In my case, it only happened when a customer selected the moneyorder payment type and immediately trying to submit your order. Because the moneyorder payment type didn't refresh the page, and because no further information was changed, the checkout form was throwing that error for some reason.

So to to fix this, under the OPC Configuration menu, I added the 'moneyorder' option to the "Payment Methods Requiring Confirmation". So now it looks like this: eway_rapid,stripepay,gps,moneyorder

Now when a customer chooses the moneyorder payment option, it will take them to a new page to confirm their order, and this eliminates that message from popping up.

  • Jeff
16 Mar 2023, 11:20 PM
#2582
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I am using The One-Page Checkout version number and release date: 1.0.5-beta1 (2016-09-xx)
on my 1.54 site on Responsive Sheffield Blue https://WWW.GELCANDLECOMPANY.COM. I've been having some customers tell me that they are unable to follow through the checkout and get a blank screen right after they enter c/c info info.
I tried placing an order on my desktop pc and noticed the CONFIRM button was displayed way on the far right which has been unable for some to see.
(see pic)Attachment 20230
When some customers inform me of the trouble I inform that the button is at the far top right and they checkout successfully.

Is there any advice on how I can make the CONFIRM button appear in the center of the page making it more visible for desktop?
Mobile phones appear just fine.
Thanks for your input.

16 Mar 2023, 11:38 PM
#2583
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

spawnie69:

I am using The One-Page Checkout version number and release date: 1.0.5-beta1 (2016-09-xx)
on my 1.54 site on Responsive Sheffield Blue WWW.GELCANDLECOMPANY.COM. I've been having some customers tell me that they are unable to follow through the checkout and get a blank screen right after they enter c/c info info.
I tried placing an order on my desktop pc and noticed the CONFIRM button was displayed way on the far right which has been unable for some to see.
(see pic)Attachment 20230
When some customers inform me of the trouble I inform that the button is at the far top right and they checkout successfully.

Is there any advice on how I can make the CONFIRM button appear in the center of the page making it more visible for desktop?
Mobile phones appear just fine.
Thanks for your input.
My apologies, but you're asking for help on an OPC version released 6 1/2 years ago (the current version's 2.4.5) and a version of Zen cart that was released 8+ years ago (2014-12-31).

The only help that I can provide (and I realize that it's not exactly hep) is that you need to upgrade your site so that you can make use of current versions of PHP (8.2 is the current as of this writing) as well as the current versions of Zen Cart (currently 1.5.8) and OPC.

The web's infrastructure regarding cookies and other security elements of a website have changed immensely over the past 6-8 years and I'll bet that those underlying changes and requirements are part of your issue.

17 Mar 2023, 1:14 AM
#2584
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

i agree completely with what lat9 said.

that said, i looked at a bit at your site. i think very little about the author of your template...

but you have a very basic problem as demonstrated from this screenshot.

i'm guessing this problem carries over to OPC, and would need addressing. that is where i would start.

if this problem does not carry over to OPC (i decided to not create an account), i would then pursue all of the updates previously recommended.

the errors i am seeing are visible when accessing the developer tools in your browser.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

23 Mar 2023, 11:34 PM
#2585
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi,
I am having a couple issues with One-Page Checkout than I can't seem to resolve. Any help would be appreciated.

I just did a fresh install of zencart 158a with a database upgrade from 155f (all previous addons removed), One Page Checkout version 2.4.5, using xampp(php) 8.2. I'm using freeshipping, item, and storepickup. With the shipping estimator turned off.

Issue 1) While using guest checkout, I can't seem to delete the last remaining item in the shopping cart.

Issue 2) I'm getting the message "Either the available shipping options or your chosen shipping method's price has changed. Please re-select/review your
desired shipping method." sometimes when going from the shopping_cart.html to the checkout_one page. I don't see a reason why it happens
sometimes but not others.

Issue 3) the continue shopping button takes me to the checkout_one.html page (I would assume it should take me to the main index.php page)

OnepageCheckout log:
Attachment #20233

24 Mar 2023, 2:42 AM
#2586
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

One question first, if the "Continue Shopping" button takes you to the checkout_one.html page, what configuration setting are you using to accomplish that?

24 Mar 2023, 3:29 AM
#2587
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

One question first, if the "Continue Shopping" button takes you to the checkout_one.html page, what configuration setting are you using to accomplish that?

The "Continue Shopping" button seems to take you back to whatever page you were on before you arrived in the shopping cart.

When I'm on the homepage I go to "checkout"-->"shopping cart"-->"continue shopping" then it takes me back to checkout (checkout_one).
If I'm on the homepage and go to "shopping cart"-->"checkout"-->"shopping cart"-->"continue shopping" then it takes me to the homepage.

So I guess the code logic makes sense as written since I'm coming from the "checkout" page. It just threw me off since I was trying to continue shopping but it would send me to checkout.

24 Mar 2023, 3:38 AM
#2588
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

One question first, if the "Continue Shopping" button takes you to the checkout_one.html page, what configuration setting are you using to accomplish that?

The "Continue Shopping" button seems to take you back to whatever page you were on before you arrived in the shopping cart.

When I'm on the homepage I go to "checkout"-->"shopping cart"-->"continue shopping" then it takes me back to checkout (checkout_one).
If I'm on the homepage and go to "shopping cart"-->"checkout"-->"shopping cart"-->"continue shopping" then it takes me to the homepage.

So I guess the code logic makes sense as written since in one instance I'm coming directly from the "checkout" page and in the other instance I'm not. It just threw me off since I was trying to continue shopping but it would send me to checkout.

24 Mar 2023, 4:31 PM
#2589
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Not sure about this one

ZC 1.5.8a
OPC 2.4.5
Square WebPay
PHP 8.0.28

Just upgraded from ZC 1.5.8 to Z1.5.8a, checking out as a guest using PayPal EC and I get a blank screen when completing the order.

[24-Mar-2023 16:08:15 Europe/London] PHP Fatal error:  Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php on line 2080 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php(2080): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/observers/class.checkout_one_observer.php(597): OnePageCheckout->createPayPalTemporaryAddressInfo()
#2 /home/mydomain_uk/public_html/includes/classes/traits/NotifierManager.php(87): checkout_one_observer->update()
#3 /home/mydomain_uk/public_html/includes/modules/payment/paypalwpp.php(1768): base->notify()
#4 /home/mydomain_uk/public_html/ipn_main_handler.php(75): paypalwpp->ec_step1()
#5 {main}
  thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173

[24-Mar-2023 16:08:15 Europe/London] Request URI: /ipn_main_handler.php?type=ec&markflow=1&clearSess=1&stage=final, IP address: 
--> PHP Fatal error: Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php on line 2080 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php(2080): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/observers/class.checkout_one_observer.php(597): OnePageCheckout->createPayPalTemporaryAddressInfo()
#2 /home/mydomain_uk/public_html/includes/classes/traits/NotifierManager.php(87): checkout_one_observer->update()
#3 /home/mydomain_uk/public_html/includes/modules/payment/paypalwpp.php(1768): base->notify()
#4 /home/mydomain_uk/public_html/ipn_main_handler.php(75): paypalwpp->ec_step1()
#5 {main}
  thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173.

line #2080 is

'PAYMENTREQUEST_0_SHIPTOSTATE' => zen_get_zone_code($temp_address['country']['id'], $temp_address['zone_id'], $temp_address['state']),

Simon

24 Mar 2023, 5:23 PM
#2590
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I wonder if the above is to do with MySql Strict Mode, although I had no problem with the same database version on ZC v1.5.8

(I am running MySQL 5.5.68-MariaDB, I know, but an upgrade is in my sights - I have to update my VPS from CentOS 7 to Alma 8 which is a bit of a headache)

Simon

24 Mar 2023, 7:53 PM
#2591
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

simon1066:

I wonder if the above is to do with MySql Strict Mode, although I had no problem with the same database version on ZC v1.5.8

(I am running MySQL 5.5.68-MariaDB, I know, but an upgrade is in my sights - I have to update my VPS from CentOS 7 to Alma 8 which is a bit of a headache)

i can not see what strict mode would have to do with it. it does not look to be a database problem.

line 173 expects the zone id to be an integer. it is not.

the question is what is the address? and specifically the zone_id.

you might be able to change line 2080 to:

'PAYMENTREQUEST_0_SHIPTOSTATE' => zen_get_zone_code($temp_address['country']['id'], (int)$temp_address['zone_id'], $temp_address['state']),

but i would be curious what the address is. and again what is the zone_id.

right after line 2073, you could add, something like:

if (!is_int($temp_address['zone_id'])) {
    trigger_error(json_encode($temp_address));
}

which would create a zc log file with the whole address.

hope that gives you a couple of ways forward.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

24 Mar 2023, 8:37 PM
#2592
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Thank you @carlwhat, the zone_id is empty (I don't use zones) - I'm guessing that might be part of the problem. The zc log file with the whole address is

24-Mar-2023 20:34:06 Europe/London] PHP Notice:  {"firstname":"My","lastname":"Name","company":"","street_address":"A Road","suburb":"","city":"A City","postcode":"AB11 1CD","state":"","zone_id":"","country":{"id":"222","title":"United Kingdom","iso_code_2":"GB","iso_code_3":"GBR"},"country_id":"222","format_id":21} in /home/my_server/public_html/includes/classes/OnePageCheckout.php on line 2075

I'll have to say adieu for tonight and pick this up again, tomorrow. I'll look at your changes to line 2080.

Simon

25 Mar 2023, 9:14 AM
#2593
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

This issue only seems to occur with Guest Checkout. Your change to line 2080 of \includes\classes\OnePageCheckout.php does the trick.

carlwhat:

you might be able to change line 2080 to:

'PAYMENTREQUEST_0_SHIPTOSTATE' => zen_get_zone_code($temp_address['country']['id'], (int)$temp_address['zone_id'], $temp_address['state']),

Simon

25 Mar 2023, 9:38 AM
#2594
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

simon1066:

[24-Mar-2023 16:08:15 Europe/London] PHP Fatal error: Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php on line 2080 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php(2080): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/observers/class.checkout_one_observer.php(597): OnePageCheckout->createPayPalTemporaryAddressInfo()
#2 /home/mydomain_uk/public_html/includes/classes/traits/NotifierManager.php(87): checkout_one_observer->update()
#3 /home/mydomain_uk/public_html/includes/modules/payment/paypalwpp.php(1768): base->notify()
#4 /home/mydomain_uk/public_html/ipn_main_handler.php(75): paypalwpp->ec_step1()
#5 {main}
thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173

[24-Mar-2023 16:08:15 Europe/London] Request URI: /ipn_main_handler.php?type=ec&markflow=1&clearSess=1&stage=final, IP address:
--> PHP Fatal error: Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php on line 2080 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/classes/OnePageCheckout.php(2080): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/observers/class.checkout_one_observer.php(597): OnePageCheckout->createPayPalTemporaryAddressInfo()
#2 /home/mydomain_uk/public_html/includes/classes/traits/NotifierManager.php(87): checkout_one_observer->update()
#3 /home/mydomain_uk/public_html/includes/modules/payment/paypalwpp.php(1768): base->notify()
#4 /home/mydomain_uk/public_html/ipn_main_handler.php(75): paypalwpp->ec_step1()
#5 {main}
thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173.


I've just attempted a Square WebPay (v1.0.1) checkout, again as a Guest, and get the same error, albeit not apparently referring to OPC. Can checkout successfully with Square not as a Guest

[25-Mar-2023 09:24:03 Europe/London] PHP Fatal error: Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/modules/payment/square_webPay.php on line 319 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/modules/payment/square_webPay.php(319): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/payment.php(288): square_webPay->before_process()
#2 /home/mydomain_uk/public_html/includes/modules/checkout_process.php(98): payment->before_process()
#3 /home/mydomain_uk/public_html/includes/modules/pages/checkout_process/header_php.php(13): require('...')
#4 /home/mydomain_uk/public_html/index.php(35): require('...')
#5 {main}
thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173

[25-Mar-2023 09:24:03 Europe/London] Request URI: /index.php?main_page=checkout_process, IP address:
--> PHP Fatal error: Uncaught TypeError: zen_get_zone_code(): Argument #2 ($zone_id) must be of type int, string given, called in /home/mydomain_uk/public_html/includes/modules/payment/square_webPay.php on line 319 and defined in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php:173
Stack trace:
#0 /home/mydomain_uk/public_html/includes/modules/payment/square_webPay.php(319): zen_get_zone_code()
#1 /home/mydomain_uk/public_html/includes/classes/payment.php(288): square_webPay->before_process()
#2 /home/mydomain_uk/public_html/includes/modules/checkout_process.php(98): payment->before_process()
#3 /home/mydomain_uk/public_html/includes/modules/pages/checkout_process/header_php.php(13): require('...')
#4 /home/mydomain_uk/public_html/index.php(35): require('...')
#5 {main}
thrown in /home/mydomain_uk/public_html/includes/functions/functions_addresses.php on line 173.


I wonder if I should focus my attention on includes/functions/functions_addresses.php line #173

Simon

25 Mar 2023, 2:03 PM
#2595
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

i think a change is in order for square_webPay.

i'm a fan of line 173 in the core code. it requires an integer. square_webPay is not providing it.

am not sure what version you are running, but i will take a look at this next week, as i'm busy this weekend.

as a temporary solution, you can change 173 to:

function zen_get_zone_code(int $country_id, $zone_id, ?string $default_zone = '')

i think that should work.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

25 Mar 2023, 2:08 PM
#2596
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

carlwhat:

i think a change is in order for square_webPay.

i'm a fan of line 173 in the core code. it requires an integer. square_webPay is not providing it.

am not sure what version you are running, but i will take a look at this next week, as i'm busy this weekend.

as a temporary solution, you can change 173 to:

function zen_get_zone_code(int $country_id, $zone_id, ?string $default_zone = '')

> 
> i think that should work.
> 
> best.

Thanks for this. I'm currently on WebPay v1.0.1. I'll implement the temp workaround. 

Have a good weekend.

Simon

26 Mar 2023, 8:22 PM
#2598
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi Cindy and fellow posters. I'm sure this has been addressed but I cannot find it.

I am trying to implement the Reward Point module into 1.5.8.a with BOOTSTRAP and OPC.

On the checkout page, I see the Reward Point block load correctly, but the checkbox is hidden. I cannot figure out what I need to change (CSS? Some other config?).

Here are a couple screenshots.

This image shows what it looks like when you go to the checkout page (notice the missing checkbox).
[Attachment no longer available]

But when you inspect the code, I can see that the checkbox is there (though it doesn't show up).
[Attachment no longer available]

  • Jeff
26 Mar 2023, 10:21 PM
#2599
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@Jeff_Mash, I'm not sure if Reward points is using zen_display_checkbox_field to (er) display its checkbox field, but if not you can look at how the checkbox for conditions and/or privacy are displayed by the template's /templates/tpl_modules_opc_conditions.php.

26 Mar 2023, 11:23 PM
#2600
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

@Jeff_Mash, I'm not sure if Reward points is using zen_display_checkbox_field to (er) display its checkbox field, but if not you can look at how the checkbox for conditions and/or privacy are displayed by the template's /templates/tpl_modules_opc_conditions.php.

Hi Cindy - I don't normally have the Privacy or Conditions set to display during checkout. However, I just enabled it to test and that does display correctly.

Here is a screenshot of that code if it helps:

[Attachment no longer available]

The only other checkbox on the Checkout page is the "Shipping Address, Same as Billing?" option, and that also displays correctly.

[Attachment no longer available]

The only one that seems to be invisible is the Reward Points checkbox, and I can't figure out why (if it's a CSS edit that needs to happen or what).

If there is something else you need me to provide, please let me know. I am grateful for all your help!

  • Jeff