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

One-Page Checkout [Support Thread]

Views: 629,534

Results 1,541 to 1,560 of 3,078
8 Mar 2020, 8:15 PM
#1541
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

One-Page Checkout [Support Thread]

How do I find that out? Since I have only been using OPC for a year, I would think only what came with the installation of OPC would be the files.

So the language files I mentioned above are correct so no worrying about them anymore? :)

Do you think it could have something to do with the expected ';' in the console error. I have not been able to find where it is specifically because when I click to look it's all jumbled together hard to read.

9 Mar 2020, 11:16 AM
#1542
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

GoofyGrrl2:

How do I find that out? Since I have only been using OPC for a year, I would think only what came with the installation of OPC would be the files.

So the language files I mentioned above are correct so no worrying about them anymore? :)

Do you think it could have something to do with the expected ';' in the console error. I have not been able to find where it is specifically because when I click to look it's all jumbled together hard to read.
You can set Configuration->One Page Checkout Settings->Use minimized scripts to false; that way the full version of the jQuery will be loaded.

9 Mar 2020, 5:18 PM
#1543
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You can set Configuration->One Page Checkout Settings->Use minimized scripts to false; that way the full version of the jQuery will be loaded.

Sorry that did not work. It still showed the message and sent me to the 3 step checkout. I will just disable it until something can be figured out.

9 Mar 2020, 7:18 PM
#1544
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Right, but using the non-minified scripts will let the browser's console-log identify the actual line in the jQuery that the missing ; error occurs.

9 Mar 2020, 7:32 PM
#1545
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Right, but using the non-minified scripts will let the browser's console-log identify the actual line in the jQuery that the missing ; error occurs.

Thank you so much for pointing that out. :) I will check it out and see if I can find it.

9 Mar 2020, 7:49 PM
#1546
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

GoofyGrrl2:

Thank you so much for pointing that out. :) I will check it out and see if I can find it.)

Ok I checked and the index (175, 876) the 175 line is still one continuous big line and 876 is does not exist since it stops at 673.

I copy line 175 and attached it to this... I hope correctly.

9 Mar 2020, 7:56 PM
#1547
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Hmm, those state-definitions look pretty funky. When you inspect your site's database using your webhost's cPanel->phpMyAdmin, clicking on the site's database name, are all the **Collation columns shown as utf8_{something} or are some shown as latin1_{something}?

9 Mar 2020, 8:04 PM
#1548
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Hmm, those state-definitions look pretty funky. When you inspect your site's database using your webhost's cPanel->phpMyAdmin, clicking on the site's database name, are all the **Collation columns shown as utf8_{something} or are some shown as latin1_{something}?

Ok I just looked and here is a sample screen shot of just that column.
Attachment 18897

10 Mar 2020, 10:47 AM
#1549
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Eek! That's not good. What are the DB_CHARSET settings in the site's /includes/configure.php and /YOUR_ADMIN/includes/configure.php?

10 Mar 2020, 11:39 AM
#1550
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi lat9,
Sorry to bother you, not sure whether you are still thinking about it, or missed my query in posts #1727 - #1529 in the midst of the admittedly more urgent requests.
I am running 1.5.6c and installing OPC 2.3.0 (well, actually 2.3.1 apparently since I am using the master files) for the first time.
The installation instructions make no mention, but upgrade instructions mention the files in the zc156b folder:

For Zen Cart versions 1.5.6 and 1.5.6a, copy the files listed below from the OPC distribution's /zc156b sub-directory to your store's file-system, bringing these files up to their Zen Cart 1.5.6b version:I cannot figure out whether I need these or not, and since some of them are different to the 1.5.6c files, I wanted to ascertain whether I need to bring over any differences that might have to do with OPC.
If all those files have "bof" and "eof" type comments it would be simple, but that is not the case, hence my query.

10 Mar 2020, 12:07 PM
#1551
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

gernot:

Hi lat9,
Sorry to bother you, not sure whether you are still thinking about it, or missed my query in posts #1727 - #1529 in the midst of the admittedly more urgent requests.
I am running 1.5.6c and installing OPC 2.3.0 (well, actually 2.3.1 apparently since I am using the master files) for the first time.
The installation instructions make no mention, but upgrade instructions mention the files in the zc156b folder:
I cannot figure out whether I need these or not, and since some of them are different to the 1.5.6c files, I wanted to ascertain whether I need to bring over any differences that might have to do with OPC.
If all those files have "bof" and "eof" type comments it would be simple, but that is not the case, hence my query.
The changes (essentially notifications) required by OPC are already present in the zc156c distribution.

The reason that there are no bof/eof comments in those Zen Cart version-specific directories is that the files are copies from the like-named versions.

10 Mar 2020, 12:22 PM
#1552
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Thanks lat9,
OK, understood.
There is one file only with a couple of sets of bof/eof comments: message_stack.php.
One instance has been incorporated into 1.5.6c, but the other has not. Just in case this is still required, I put the diff here again (it if the line in the ADMIN_FLAG condition:

root@hase:/home/hase/Documents/ZenCart# diff -uw /<download path>/one_page_checkout-master/zc156b/includes/classes/message_stack.php /<local installation>/testshop/includes/classes/message_stack.php 
--- /<download path>/one_page_checkout-master/zc156b/includes/classes/message_stack.php	2020-03-06 23:43:25.000000000 +0900
+++ /<local installation>/testshop/includes/classes/message_stack.php	2019-05-29 22:04:13.560135523 +0900
@@ -3,10 +3,10 @@
  * messageStack Class.
  *
  * @package classes
- * @copyright Copyright 2003-2016 Zen Cart Development Team
+ * @copyright Copyright 2003-2019 Zen Cart Development Team
  * @copyright Portions Copyright 2003 osCommerce
  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
- * @version $Id: Author: DrByte  Sat Oct 17 22:52:38 2015 -0400 Modified in v1.5.5 $
+ * @version $Id: mc12345678 2019 Apr 30 Modified in v1.5.6b $
  */
 if (!defined('IS_ADMIN_FLAG')) {
   die('Illegal Access');
@@ -29,9 +29,6 @@
       for ($i=0, $n=sizeof($messageToStack); $i<$n; $i++) {
         $this->add($messageToStack[$i]['class'], $messageToStack[$i]['text'], $messageToStack[$i]['type']);
       }
-/*-bof-checkout1-lat9  *** 1 of 2 *** Move to output function to allow messages to survive after header redirects
-      $_SESSION['messageToStack']= '';
-  -eof-checkout1-lat9  *** 1 of 2 *** */
     }
 
   }
@@ -62,7 +59,7 @@
 
   function add_session($class, $message, $type = 'error') {
 
-    if (!$_SESSION['messageToStack']) {
+    if (empty($_SESSION['messageToStack'])) {
       $messageToStack = array();
     } else {
       $messageToStack = $_SESSION['messageToStack'];
@@ -80,9 +77,7 @@
   function output($class) {
     global $template, $current_page_base;
     
-//-bof-checkout1-lat9  *** 2 of 2 *** Once the messages are output, it's safe to clear any session-based messages
     $_SESSION['messageToStack'] = '';
-//-eof-checkout1-lat9  *** 2 of 2 ***
 
     $output = array();
     for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) {
@@ -110,4 +105,3 @@
   }
   
 }
-?>
10 Mar 2020, 7:20 PM
#1553
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Eek! That's not good. What are the DB_CHARSET settings in the site's /includes/configure.php and /YOUR_ADMIN/includes/configure.php?

Wow checked those two files....

includes/configure.php ----- define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common

Admin/inlcudes/configure.php ----- **define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common

**

10 Mar 2020, 7:25 PM
#1554
goofygrrl2 avatar

goofygrrl2

New Zenner

Join Date:
Jun 2007
Location:
Texas
Posts:
41
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

GoofyGrrl2:

Wow checked those two files....

includes/configure.php ----- define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common

Admin/inlcudes/configure.php ----- **define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common

**

Of course I just checked the original 1.5.6c files and both show only what the first one says above. I am assuming it's not as easy as copying the correct lines to the admin configure.php file is it? I don't even know why they aren't the original 1.5.6c files. I have been using those files for almost a year now.

11 Mar 2020, 2:21 PM
#1555
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi lat9,
Good news, ignoring the zca56b files, I installed OPC 2.3.1 (Master) on my test shop, without any translations yet, and also without modifying the shipping module, and the module displays a nice one-page checkout for a logged in user, so that works fine. Customization of confirming age needs to be added by me, and of course the translation. And of course any enhancements related to multilingual addresses and Japanese support. But at least it does not clash with the existing store setup, and the debug log indicates that all information appears to be correctly read as expected (including certainly some information that requires Japanese support, so the module is obviously using the core files in some way to obtain some of its information, which is pretty great to see).

I will be working on the translations shortly, and see what remains to be done after that, for logged in users, before moving on to see how guest users works.
Regards,
Gernot Hassenpflug

30 Mar 2020, 3:29 PM
#1556
simon1066 avatar

simon1066

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

ZC v1.56c
OPC v2.3.0
CEON URI Mapping
CSS_JS Loader
DPU
SBA
IH5
Zen Colorbox
Structured Data
SitemapXML
Lazy Loader
EU Cookie
Column Layout Grid - Responsive
Customised Template

I've activated Guest Checkout for the first time on my local dev copy and find that when clicking through to the \index.php?main_page=checkout_one page I get a partial blank screen. No doubt I've broken something, sequence is:

Add to cart
View cart
Click 'Checkout'
Goes to login page
Click 'Checkout' - Guest Checkout
Go to \index.php?main_page=checkout_one

Error log is:

[30-Mar-2020 15:52:20 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation() in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php:14
Stack trace:
#0 D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\common\tpl_main_page.php(217): require()
#1 D:\wamp64\www\mydomain.co.uk\index.php(97): require('D:\\wamp64\\www\\m...')
#2 {main}
  thrown in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php on line 14

[30-Mar-2020 15:52:20 Europe/London] Request URI: /index.php?main_page=checkout_one, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation() in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php:14
Stack trace:
#0 D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\common\tpl_main_page.php(217): require()
#1 D:\wamp64\www\mydomain.co.uk\index.php(97): require('D:\\wamp64\\www\\m...')
#2 {main}
  thrown in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php on line 14.

The blank page starts at the point of

echo $payment_modules->javascript_validation();

in tpl_checkout_one_default.php

If I sign in as a returning customer on the login page then I am successfully directed to the full checkout_one page. No console errors and the only payment module active is Paypal Express Checkout.

Any ideas?

30 Mar 2020, 3:32 PM
#1557
carlwhat avatar

carlwhat

zennedOut

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

Re: One-Page Checkout [Support Thread]

PHP Fatal error: Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation()

tells you everything right there.....

30 Mar 2020, 3:51 PM
#1558
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@simon1066, was that perchance a 'virtual' order?

30 Mar 2020, 3:59 PM
#1559
simon1066 avatar

simon1066

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

lat9:

@simon1066, was that perchance a 'virtual' order?

I have been experimenting with downloads, so that made me think. But no, the product is not virtual.

30 Mar 2020, 5:00 PM
#1560
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@simon1066, I'm befuddled as to how that can happen. Would you 'log out' of that guest checkout, add the same product to the cart, go to the login screen and then enable OPC's debug via your admin. Once the debug's enabled, "hit" that Guest Checkout button to create an OPC debug/trace log.

Once the file's available (they're a bit large for posting back on the forums), you can send it to me via direct email. Send me a PM if you don't have my email address already.