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

One-Page Checkout [Support Thread]

Views: 629,273

Results 641 to 660 of 3,073
19 Nov 2017, 12:47 AM
#641
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

One-Page Checkout [Support Thread]

lat9:

When the "Confirm Order" button shows but doesn't proceed, there's likely a jQuery/javascript issue that's preventing that action.

Most modern browsers provide a "console" display in their developer's view; pressing F12 and then selecting the "Console" tab will allow you to view the status on the OPC page.

I can't explain that debug-log; it almost looks like the shopping cart was/is empty?

Thanks, lat8

I've taken screen shots of the F12 display in Firefox both:

  • before the CHECKOUT button is pressed (showing the shopping cart items - no, it wasn't empty:no:) - [Attachment no longer available]
  • when the CHECKOUT button was pressed - [Attachment no longer available]

And for completeness, here's the debug files generated with these: [Attachment no longer available] Attachment #17444

frank18:

...Any info is welcome, if you want to you could zip up the entire file system and also export the DB, email both to me....

Thanks for your kind offer, Frank:smile:. I started zipping the files, but got called away. If this F12 report doesn't point us in the right directly, I'll complete that task and email them to you.

Cheers...Gerri

19 Nov 2017, 1:15 AM
#642
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

When the "Confirm Order" button shows but doesn't proceed, there's likely a jQuery/javascript issue that's preventing that action.

Most modern browsers provide a "console" display in their developer's view; pressing F12 and then selecting the "Console" tab will allow you to view the status on the OPC page.

I can't explain that debug-log; it almost looks like the shopping cart was/is empty?

Thanks, lat8.

I've taken screen shots of the Firefox F12 display both:

  • before the CHECKOUT button is pressed (showing the shopping cart items - no, it wasn't empty:no:) - Attachment #17451
  • when the CHECKOUT button was pressed - Attachment #17450

And for completeness, here's the debug files generated with these: Attachment #17449 Attachment #17448

frank18:

...Any info is welcome, if you want to you could zip up the entire file system and also export the DB, email both to me....

Thanks for your kind offer, Frank:smile:. I started zipping the files, but got called away. If this F12 report doesn't point us in the right directly, I'll complete that task and email them to you.

Cheers...Gerri

19 Nov 2017, 2:55 AM
#643
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

GerriM:

I've taken screen shots of the Firefox F12 display both:

  • before the CHECKOUT button is pressed (showing the shopping cart items - no, it wasn't empty:no:) - Attachment #17451

And for completeness, here's the debug files generated with these: Attachment #17449 Attachment #17448

Since I'm unsure whether the F12 report provided above is taken pointing to the time the error occurs, here's the Firefox F12 reports in sequence:

  1. Here's a snapshot of the Shopping Cart (Attachment #17455) and the F12 report that matches this (Attachment #17456
  2. Then I click the CHECKOUT button
  3. These error logs are generated (Attachment #17457) and I am moved to the next screen with this F12 report (Attachment #17458.

Hope I got it right for you.

Cheers...Gerri

19 Nov 2017, 1:42 PM
#644
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

What payment method(s) are you using? That myDEBUG*.log file references line 354 of the (presumed default) Zen Cart 1.5.5e order.php class, where the cart contents are being turned into an order. For some reason the "payment" class isn't being loaded.

For the F12 display, you're showing the "Inspector" tab (i.e. the low-level layout of the page); what I need to see is the contents of that "Console" tab to its right.

20 Nov 2017, 9:49 AM
#645
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

What payment method(s) are you using? That myDEBUG*.log file references line 354 of the (presumed default) Zen Cart 1.5.5e order.php class, where the cart contents are being turned into an order. For some reason the "payment" class isn't being loaded.

The file order.php file is default: version: Author: DrByte Fri Jan 1 12:23:19 2016 -0500 Modified in v1.5.5
I'm using **Direct Bank Deposit v 1.5.3 revised **with changed code to remove the "bank cheque" option from the plug-in. I thought this wasn't the culprit since, during my testing (if I remember correctly):

  • the amended plugin worked without the error when I disable OPC,
  • I uninstalled that plugin when (like you) I found line 354 read: 'payment_method' => $GLOBALS[$class]->title. This resulted in the same error when I used ZC's Cash on Delivery module instead.

In case I'm wrong and my amendments are the problem, here's copies of those two amended files (C:\wamp64\www\includes\modules\payment\dirbankaus.php & C:\wamp64\www\includes\languages\english\modules\payment\dirbankaus.php): Attachment #17461

lat9:

For the F12 display, you're showing the "Inspector" tab (i.e. the low-level layout of the page); what I need to see is the contents of that "Console" tab to its right.

Apologies. Here they are. F12 Console reports generated:

I've also saved Debugging tab excerpts displayed on clicking some links in the Console view. However, they're big and I haven't worked out how to save or print those...so just used Snip-it.

Thanks again for looking at these.

20 Nov 2017, 9:44 PM
#646
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Ah, it was the last image that you posted, showing the OPC's console logs when you're trying to change payment/shipping options.

I didn't look back through your postings to see what template you're using, but whatever it is the template file /jscript/jscript_framework.php is not being loaded (that is where the zcJS function is defined). That zcJS jQuery function is the method that OPC uses to do its AJAX "magic".

What version of Zen Cart are you using (again, being lazy)?

21 Nov 2017, 8:24 AM
#647
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

...the template file /jscript/jscript_framework.php is not being loaded (that is where the zcJS function is defined). That zcJS jQuery function is the method that OPC uses to do its AJAX "magic".

What version of Zen Cart are you using (again, being lazy)?

Using

  • ZC1.5.5e
  • jscript_framework.php version: OPC v1.4.1 (I checked just now with Beyond Compare to confirm this)
  • Responsive Sheffield Blue v2.0 template with ZC1.5.5 compatibility code changes applied. This included reverting to the ZC1.5.5e version of jscript_framework.php.

So when I installed the OPC 1.4.1, I used that OPC version of ../includes/templates/MY_TEMPLATE/jscript/jscript_framework.php without merging.

Should I have merged the ZC and OPC versions? I did look at this with Beyond Compare...but to a newbie like me, the changes seemed such that adopting the OPC version seemed the wisest choice.

Thanks

22 Nov 2017, 10:14 AM
#648
uyutom avatar

uyutom

New Zenner

Join Date:
Nov 2017
Posts:
3
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi,Cindy,i am uyutom,i have updated the plugin’s Configuration->One-Page Checkout->Payment Methods Requiring Confirmation to add ,SecurityPayment to the existing list. But also messge "Your order's details have changed. Please review the current values and re-submit." i have send to email for error log,can you help me?

23 Nov 2017, 8:56 PM
#649
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

In case others have experienced similar issues...following on from Post #637, lat9 kindly worked with me off-line and we found a resolution :clap:using Firefox's F12 and Control-U functions. Thanks very much to lat9 for her assistance:D!

First, lat9 found a coding error where I accidentally omitted a "-" in "-->" in my amended **html_header.php **file (commenting out the zcJS function). When that didn't resolve the error, using the same debug methods, I found a bracket error in line 82 of the \includes\templates\My_TEMPLATE\jscript\jscript_framework file. I corrected that and got OPC working :p.

This issue may not be relevant to everyone since once OPC started operating correctly, reverting back to the original uncorrected file didn't duplicate the error :huh:. lat9 then provided me with a replacement file.

Thanks again! Very grateful for all assistance!

23 Nov 2017, 9:46 PM
#650
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

uyutom:

Hi,Cindy,i am uyutom,i have updated the plugin’s Configuration->One-Page Checkout->Payment Methods Requiring Confirmation to add ,SecurityPayment to the existing list. But also messge "Your order's details have changed. Please review the current values and re-submit." i have send to email for error log,can you help me?
Unfortunately, that ***SecurityPayment ***payment method is not compatible with OPC. I'll update the OPC's readme to reflect the restriction.

23 Nov 2017, 9:47 PM
#651
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

GerriM:

In case others have experienced similar issues...following on from Post #637, lat9 kindly worked with me off-line and we found a resolution :clap:using Firefox's F12 and Control-U functions. Thanks very much to lat9 for her assistance:D!

First, lat9 found a coding error where I accidentally omitted a "-" in "-->" in my amended **html_header.php **file (commenting out the zcJS function). When that didn't resolve the error, using the same debug methods, I found a bracket error in line 82 of the \includes\templates\My_TEMPLATE\jscript\jscript_framework file. I corrected that and got OPC working :p.

This issue may not be relevant to everyone since once OPC started operating correctly, reverting back to the original uncorrected file didn't duplicate the error :huh:. lat9 then provided me with a replacement file.

Thanks again! Very grateful for all assistance!
No problem, GerriM! Thanks for the update that with *validated *HTML and the correct version of the jscript_framework.php file corrected your issue.

23 Nov 2017, 11:20 PM
#652
jolion avatar

jolion

New Zenner

Join Date:
Mar 2010
Posts:
21
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I installed the latest version of OPC

When submit the confirm button it goes in a loop and the checkout one page shows the message "Your order's details have changed. Please review the current values and re-submit". I read several messages about the same problems, but with no result. I really want to use OPC, so any help is welcome.

24 Nov 2017, 12:02 PM
#653
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jolion:

I installed the latest version of OPC

When submit the confirm button it goes in a loop and the checkout one page shows the message "Your order's details have changed. Please review the current values and re-submit". I read several messages about the same problems, but with no result. I really want to use OPC, so any help is welcome.
What Zen Cart version? What template are you using? What shipping, payment and order-total modules?

If possible (i.e. you're not testing on a local computer) could/would you post a link to the site? If you don't want it public, you can send me the link via PM.

Please note that the message you identified can result from a bunch of different underlying issues.

24 Nov 2017, 12:47 PM
#654
jolion avatar

jolion

New Zenner

Join Date:
Mar 2010
Posts:
21
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I have ZC1.5.5d

My shop is https://www.jolion.nl, although the site is in development.

I learned in here that is can have several causes, but I can't put my finger on the right one.

Thank you in advance for helping me!

24 Nov 2017, 1:33 PM
#655
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jolion:

I have ZC1.5.5d

My shop is www.jolion.nl, although the site is in development.

I learned in here that is can have several causes, but I can't put my finger on the right one.

Thank you in advance for helping me!
Do you have a test user account that I could use? You can send me the test email address and password via Private Message.

24 Nov 2017, 2:49 PM
#656
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Test account credentials received! The cause of the message, I believe, is that the modifications made to the tpl_checkout_one_default.php file have rendered the page's HTML invalid.

Since much of the OPC's processing involves jQuery processing of the page, invalid HTML can confuse the data-gathering performed when that "Confirm" (or "Review") button is pressed.

I'd suggest updating the changes you've made to the template to restore its valid HTML; I'm pretty sure that with valid HTML you'll have the OPC working.

25 Nov 2017, 5:13 PM
#657
jolion avatar

jolion

New Zenner

Join Date:
Mar 2010
Posts:
21
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi Lat9, thanks for your help so far! I have installed again the original tpl_chechout_one_default and figth my way through WS3 validator. Most of the errors comes from the main page, but I was able to tackle them all! The page is error free for now, but still no confirmation page and still have the error message "Your order's details have changed. Please review the current values and re-submit.".

In IE10 F12 console I see a error. See the attached image.

Attachment 17487

Do you have any clue how to fix this?

25 Nov 2017, 6:16 PM
#658
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@jolion, please follow these instructions to create a OPC log; I'll send you my direct email via PM and you can email the log to me once you've created it.

  1. Make sure that your admin's Configuration->One Page Checkout->Debug is set to true.
  2. Log into your site, place an item in your cart and click the "Checkout" button.
  3. Using your webhost's cPanel's File Explorer or via FTP, delete any existing /logs/myDEBUG-one-page-checkout.log* files.
  4. Click the "Confirm Order" button.
  5. Navigate to your site's /logs directory, copy that most recent one-page-checkout log and email it to me.
29 Nov 2017, 7:23 PM
#659
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]

Okay, here we go. haredoDOTcom 1.5.5a with latest Square and OPC. MySQL 5.6.37 PHP 5.6.3 Apache linux 3.10.0
Nothing else in the payment/checkout area that would effect checkout.

  • User is not logged in NOR is user in customer database.
  • User selects item for shopping cart. (https://haredoDOTcom/index.php?main_...&products_id=6)
  • User adds to cart
  • User clicks on checkout and is shown split checkout page.
  • User selects PayPal Checkout
  • User taken to PayPal for payment
  • User selects Payment Type and continues
  • PayPal returns user to haredoDOTcom for confirmation
  • Confirmation button does not work.

Read me and troubleshot with F12 to discover hidden errors in Squre which led us to find that a file was not included in the newest release of Square Payment Module. CreateOrderRequestOrder.php is the file and changing it to .xxx vs .php cured a small problem with Square that was NOT throwing an error. Will post that part in Square Payment thread. Found another Square file that was not properly updated and fixed that.

Those repairs got us to the point that using the confirm order button would at least fire something in the F12 Console.

The system is crashing when I try to add the F12 Log so I'll have try in next thread

29 Nov 2017, 7:24 PM
#660
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]

here's the F12 log```
index.php?main_page=checkout_one:25 A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-1.12.0.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.(anonymous) @ index.php?main_page=checkout_one:25
index.php?main_page=checkout_one:25 A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-1.12.0.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ index.php?main_page=checkout_one:25
index.php?main_page=checkout_one:247 setFormSubmitButton, payment-module: paypalwpp
index.php?main_page=checkout_one:247 Showing "confirm"
index.php?main_page=checkout_one:247 Setting orderConfirmed (0), submitter (null)
index.php?main_page=checkout_one:247 jQuery version: 1.12.0
paymentform:1 Uncaught Error: SqPaymentForm element with id square_cc-number not found. Has the DOM finished loading?
See: https://docs.connect.squareup.com/articles/adding-payment-form/#generatingpaymentform
at s.buildIframeController (paymentform:1)
at s.buildIframeControllers (paymentform:1)
at s.build (paymentform:1)
at s.build (paymentform:1)
s.buildIframeController @ paymentform:1
s.buildIframeControllers @ paymentform:1
s.build @ paymentform:1
s.build @ paymentform:1
mycontentscript.js:13 KGen:Page => Ready !
index.php?main_page=checkout_one:247 submitFunction, 2 arguments: 0, 0,
index.php?main_page=checkout_one:247 Current order total: 11.31, text: $11.31
index.php?main_page=checkout_one:247 submitFunction, on exit submitter=null
index.php?main_page=checkout_one:247 Setting orderConfirmed (1), submitter (null)
index.php?main_page=checkout_one:247 Submitting order-creating form
index.php?main_page=checkout_one:247 Updating shipping method to usps_First-ClassTM Package Service, processing type: submit
index.php?main_page=checkout_one:50 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000, …}
index.php?main_page=checkout_one:247 Shipping method updated, error: false
index.php?main_page=checkout_one:247 Form submitted, type (submit), orderConfirmed (1)
index.php?main_page=checkout_one:247 Form checked, passed (true)
index.php?main_page=checkout_one:675 Uncaught TypeError: Cannot read property 'checked' of null
at HTMLFormElement.<anonymous> (https://haredo.com/index.php?main_page=checkout_one:675:125)
at HTMLFormElement.dispatch (https://code.jquery.com/jquery-1.12.0.min.js:3:12344)
at HTMLFormElement.r.handle (https://code.jquery.com/jquery-1.12.0.min.js:3:9071)
at Object.trigger (https://code.jquery.com/jquery-1.12.0.min.js:3:11471)
at HTMLFormElement.<anonymous> (https://code.jquery.com/jquery-1.12.0.min.js:3:18895)
at Function.each (https://code.jquery.com/jquery-1.12.0.min.js:2:2881)
at n.fn.init.each (https://code.jquery.com/jquery-1.12.0.min.js:2:846)
at n.fn.init.trigger (https://code.jquery.com/jquery-1.12.0.min.js:3:18871)
at n.fn.init.n.fn.(anonymous function) [as submit] (https://code.jquery.com/jquery-1.12.0.min.js:4:16189)
at Object.<anonymous> (https://haredo.com/index.php?main_page=checkout_one:554:75)
(anonymous) @ index.php?main_page=checkout_one:675
dispatch @ jquery-1.12.0.min.js:3
r.handle @ jquery-1.12.0.min.js:3
trigger @ jquery-1.12.0.min.js:3
(anonymous) @ jquery-1.12.0.min.js:3
each @ jquery-1.12.0.min.js:2
each @ jquery-1.12.0.min.js:2
trigger @ jquery-1.12.0.min.js:3
n.fn.(anonymous function) @ jquery-1.12.0.min.js:4
(anonymous) @ index.php?main_page=checkout_one:554
i @ jquery-1.12.0.min.js:2
fireWith @ jquery-1.12.0.min.js:2
e.(anonymous function) @ jquery-1.12.0.min.js:2
success @ index.php?main_page=checkout_one:58
i @ jquery-1.12.0.min.js:2
fireWith @ jquery-1.12.0.min.js:2
y @ jquery-1.12.0.min.js:4
c @ jquery-1.12.0.min.js:4
XMLHttpRequest.send (async)
send @ jquery-1.12.0.min.js:4
ajax @ jquery-1.12.0.min.js:4
(anonymous) @ index.php?main_page=checkout_one:70
Deferred @ jquery-1.12.0.min.js:2
zcJS.ajax @ index.php?main_page=checkout_one:36
changeShippingSubmitForm @ index.php?main_page=checkout_one:488
(anonymous) @ index.php?main_page=checkout_one:588
dispatch @ jquery-1.12.0.min.js:3
r.handle @ jquery-1.12.0.min.js:3