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

One-Page Checkout [Support Thread]

Views: 633,121

Results 2,501 to 2,520 of 3,107
31 Oct 2022, 4:16 PM
#2501
njcyx avatar

njcyx

Zen Follower

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

One-Page Checkout [Support Thread]

njcyx:

Update. My live site still received intermittent duplicated orders, like once per week. Nowadays, customers are really mad at this...

Anyway, I did some further changes today and I will report if helps.

  1. I change AJAX time-out from 6s to 8s. A few months ago, I changed it from 4s to 6s. Not sure if it helps.

  2. According to the following post

https://www.zen-cart.com/showthread.php?220919-Credit-Card-Getting-Charged-Twice&p=1317476#post1317476

I change the setTimeout('button_timeout()', 4000) from 4s to 20s. There are two files uses this function:

\includes\modules\pages\checkout_confirmation\jscript_double_submit.php
\includes\modules\pages\checkout_one_confirmation\jscript_main.php

I changed both to 20s. Here is a similar post from Stripe.com plug-in

https://www.zen-cart.com/showthread.php?201999-Stripe-com-payment-integration-module&p=1386282

The author recommended to re-enable the submit button after 9s. So if 20s works on my end, I may try 10s instead.

Background: I'm using zc 1.5.7d, opc 2.4.4b2, paypal pro and express, php 7.4

Update: this trick doesn't help. Two weeks later I received another duplicated order case.

31 Oct 2022, 4:26 PM
#2502
njcyx avatar

njcyx

Zen Follower

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

Re: One-Page Checkout [Support Thread]

schoolboy:

Trial version of 1.5.8, with OPC installed.
Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
Lines 38 and 44 in the following file...

one_page_checkout-2.4.3\includes\languages\english\order_status.php
TEXT_LOOKUP_INSTRUCTIONS
ENTRY_ORDER_NUMBER

I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

<?php $define = [ 'NAVBAR_TITLE' => 'Order Status', 'NAVBAR_TITLE_1' => 'My Account', 'HEADING_TITLE' => 'Check Order History', 'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below', 'ENTRY_ORDER_NUMBER' =>'Order Number', ]; return $define; ``` > > ... and this now returns the desired text variable. I want to add a little bit more information regarding this issue. zc1.58 includes order_status.php by default, which has the same name as the order_status.php by opc. So there will be two language definition files for lang.order_status.php. One from OPC (order_status.php), one from zc1.58 (lang.order_status.php). So obviously there is a conflict. I re-wrote the order_status.php from OPC into zc1.58 format and name it as "lang.order_status.php", to replace the lang.order_status.php from zc1.58. And it worked fine.
31 Oct 2022, 4:38 PM
#2503
njcyx avatar

njcyx

Zen Follower

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

Re: One-Page Checkout [Support Thread]

My previous post could be confusing...Anyway, there are two similar language files. One from opc and one from the zc. So there might be some conflict for their functions.

Here is the language file I modified for opc and zc1.58 (lang.order_status.php). Please remove the original order_status.php from OPC in your directory.

Let's see if @lat9 has a better way to improve it.

<?php
$define = [

// -----
// Part of the One-Page Checkout plugin => provided under GPL 2.0 license by lat9 ([email protected]).
// Copyright (C) 2018 => Vinos de Frutas Tropicales.  All rights reserved.
//
// Adapted from the like-named page handling with the following history:
// - Integrated COWAA v1.0

'NAVBAR_TITLE' => 'Order Status',
'NAVBAR_TITLE_1' => 'My Account',

'HEADING_TITLE' => 'Check Order Status', //Lookup Order Information

'SUB_HEADING_TITLE' => 'Order Information',

'HEADING_ORDER_NUMBER' => 'Order #%s',
'HEADING_ORDER_DATE' => 'Order Date:',
'HEADING_ORDER_TOTAL' => 'Order Total:',

'HEADING_PRODUCTS' => 'Products',
'HEADING_TAX' => 'Tax',
'HEADING_TOTAL' => 'Total',
'HEADING_QUANTITY' => 'Qty.',

'HEADING_SHIPPING_METHOD' => 'Shipping Method',
'HEADING_PAYMENT_METHOD' => 'Payment Method',

'HEADING_ORDER_HISTORY' => 'Status History & Comments',
'TEXT_NO_COMMENTS_AVAILABLE' => 'No comments available.',
'TABLE_HEADING_STATUS_DATE' => 'Date',
'TABLE_HEADING_STATUS_ORDER_STATUS' => 'Order Status',
'TABLE_HEADING_STATUS_COMMENTS' => 'Comments',
'QUANTITY_SUFFIX' => ' ea.  ',
'ORDER_HEADING_DIVIDER' => ' - ',
'TEXT_OPTION_DIVIDER' => ' - ',

'ENTRY_EMAIL' => 'E-Mail Address:',
'ENTRY_ORDER_NUMBER' => 'Order Number:',

'ERROR_INVALID_EMAIL' => 'You have entered an invalid e-mail address.',
'ERROR_INVALID_ORDER' => 'You have entered an invalid order number.',
'ERROR_NO_MATCH' => 'No match found for your entry.',

'TEXT_LOOKUP_INSTRUCTIONS' => 'To lookup the status of an order, please enter the order number and the e-mail address with which it was placed.', 

'FOOTER_DOWNLOAD' => 'You can also download your products at a later time at \'%s\'',
'FOOTER_DOWNLOAD_COWOA' => 'You can download your products using the Order Status page until you reach max downloads or run out of time!',

];

return $define;
8 Nov 2022, 9:23 PM
#2504
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Cindy - Is there any way to somehow still enable GUEST CHECKOUT, but NOT have the one-page checkout?

One of the MAIN reasons why I love OPC is not for the single page, but rather, for the ability to have Guest Checkout.

As it stands, if the configuration for "Enable One-Page Checkout?" is set to false, it turns off the entire module. But since you also have an "Enable Guest Checkout?" value, is there any possibility in future releases where one can not be dependent on the other?

For example, can have the default 3 page checkout (by setting Enable OPC to false), but also have the Guest checkout option by setting that to true?

  • Jeff
17 Nov 2022, 3:11 AM
#2505
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

ZC 1.5.7d
Bootstrap 3.3.0
OPC 2.4.3

PhP version 7.3

I am getting some errors as follow and I believed it OPC related somehow:

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 46.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_SHIPPING_TIMEOUT - assumed 'JS_ERROR_AJAX_SHIPPING_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 47.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 47.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_PAYMENT_TIMEOUT - assumed 'JS_ERROR_AJAX_PAYMENT_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 48.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 48.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 49.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 49.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 50.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 50.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 51.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 51.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.

[16-Nov-2022 16:33:48 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 75.113.172.163
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.

Any helps on resolving would be greatly appreciated.

Thank you

17 Nov 2022, 4:23 AM
#2507
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

carlwhat:

do you have this file in your install:

https://github.com/lat9/one_page_checkout/blob/v2.4.3/includes/languages/english/lang.checkout_one.php

Yes I have the language files.

Could an additional jscript file cause the issue?

I added the following file named jscript_paypal.php in includes/modules/pages/checkout_one with the following code:

<script defer
    src="https://www.paypal.com/sdk/js?client-id=Aegt8Ag48Qk8****hidden**********AWXJIkxeeiWN2Na1vIpn-mTwy6QygzUb&components=messages"
    data-namespace="PayPalSDK">
</script>

The paypal script is only needed on this page so i thought of doing it this way instead of in html_header between the <head> tag.

Did i mess it up and/or did it wrong? It could be interfering with jscript_main.php

Thank you for your help

18 Nov 2022, 3:39 AM
#2509
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Do you also have this (https://github.com/lat9/one_page_checkout/blob/v2.4.3/includes/functions/extra_functions/one_page_checkout_functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.

I have this file as well but my version was a little different.( after winmerge comparison)

I had this code around line 128:

if (!defined('IS_ADMIN_FLAG') || IS_ADMIN_FLAG !== true) { 
       $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
} else {
    $base_language_dir = DIR_FS_CATALOG_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
}

instead of

   $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;

I replaced my file with the github version and also removed my jscript_paypal.php hoping it will fix the error log.

I also looked up some of the constant using developer tool kit and they are present in the file /includes/languages/english/lang.checkout_one.php

Not sure what it could be. I resetted the error log and waiting to see if it happens again.

18 Nov 2022, 8:58 PM
#2510
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Do you also have this (https://github.com/lat9/one_page_checkout/blob/v2.4.3/includes/functions/extra_functions/one_page_checkout_functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.

Looks like I am out of luck on this one.

The errors are back with a vengeance:

[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.

[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.

[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.

Anything other ideas what could be causing the issue?

Thank you for all your help

19 Nov 2022, 12:07 PM
#2511
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@nicksab, whatever changes you have made to OPC's base files are what's are giving you these issues. I suggest that you do a full review of those changes to see how they might be affecting the OPC update.

19 Nov 2022, 9:19 PM
#2512
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

@nicksab, whatever changes you have made to OPC's base files are what's are giving you these issues. I suggest that you do a full review of those changes to see how they might be affecting the OPC update.

My apologies has I must have messed up it up somehow. I removed OPC and reinstalled it as well as applied the Bootstrap changes. So fa, no error.

However, since I don t want to break it again:

How do i remove the "bottom instructions" box?

How can i make the "specials instructions/comment box" required or mandatory?

Thank you

19 Nov 2022, 9:41 PM
#2513
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

nicksab:

My apologies has I must have messed up it up somehow. I removed OPC and reinstalled it as well as applied the Bootstrap changes. So fa, no error.

However, since I don t want to break it again:

How do i remove the "bottom instructions" box?

How can i make the "specials instructions/comment box" required or mandatory?

Thank you
You remove the "bottom instructions" by editing your template-override of /includes/languages/english/lang.checkout_one.php, so that would be in your bootstrap-clone's language sub-directory: /includes/languages/english/YOUR_TEMPLATE/lang.checkout_one.php.

You'll need custom code to make an entry in the comment-box mandatory.

20 Nov 2022, 7:55 PM
#2514
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You remove the "bottom instructions" by editing your template-override of /includes/languages/english/lang.checkout_one.php, so that would be in your bootstrap-clone's language sub-directory: /includes/languages/english/YOUR_TEMPLATE/lang.checkout_one.php.

You'll need custom code to make an entry in the comment-box mandatory.

Thank you

21 Nov 2022, 2:51 AM
#2515
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Is it possible to add a shipping phone number to the shipping address block?

I tried the plug in at https://www.zen-cart.com/downloads.php?do=file&id=1100 but no luck.

anyone knows how to or managed to integrate it to OPC?

I am trying to have a shipping phone number field and that s the only thing i could find.

Any advise or suggestions would be appreciated

Thank you

21 Nov 2022, 3:34 PM
#2516
northeasttroller avatar

northeasttroller

New Zenner

Join Date:
Nov 2022
Posts:
15
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I am still receiving the "missing elements" message. - Help, I'm not sure where else to look.

Zen version v1.5.8, OPC 2.4.3, Bootstrap 4 Template v3.4.0, Square WebPay , PHP7.4.32

I did a compare text on the tpl_checkout_one_default.php from both the Bootstrap directory and the Template Default directory and couldn't find any missing HTML id elements between the two. I even went so far as to make a copy and bring in the page directly from the template default directory and no luck there.

URL is https://www.NortheastTroller.com - OPC is not enabled currently.

21 Nov 2022, 4:10 PM
#2517
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

NortheastTroller:

I am still receiving the "missing elements" message. - Help, I'm not sure where else to look.

Zen version v1.5.8, OPC 2.4.3, Bootstrap 4 Template v3.4.0, Square WebPay , PHP7.4.32

I did a compare text on the tpl_checkout_one_default.php from both the Bootstrap directory and the Template Default directory and couldn't find any missing HTML id elements between the two. I even went so far as to make a copy and bring in the page directly from the template default directory and no luck there.

URL is www.NortheastTroller.com - OPC is not enabled currently.
Since you're using the Bootstrap template, you'll need to change the OPC configuration's "Order Total jQuery Selector" to #ottotal .ot-text.

21 Nov 2022, 5:48 PM
#2518
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Hi
I am running zencart 1.5.8 Bootstrap V 3.4.0 one-page-checkout V 2.4.3(2022-07-23) PHP 7.4
Sadly if apply Guest Checkout after putting something in the cart I get your session has expired. Can anyone advise , many thanks

21 Nov 2022, 6:08 PM
#2519
northeasttroller avatar

northeasttroller

New Zenner

Join Date:
Nov 2022
Posts:
15
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

NortheastTroller:

URL is https://www.NortheastTroller.com - OPC is not enabled currently.

Ok, Got that all set!

Now I'm receiving the "Sorry, but our expedited checkout process cannot be used. Click here to use our alternate checkout process." on test of Guest Checkout.

The Jscript error it pulls is Uncaught Error: Syntax error, unrecognized expression: .
at m.error (jscript_jquery-1.7.1.min.js:3:14665)
at m.filter (jscript_jquery-1.7.1.min.js:3:14605)
at m (jscript_jquery-1.7.1.min.js:3:12970)
at Function.m [as find] (jscript_jquery-1.7.1.min.js:3:24740)
at init.find (jscript_jquery-1.7.1.min.js:3:26850)
at new init (jscript_jquery-1.7.1.min.js:2:7847)
at e (jscript_jquery-1.7.1.min.js:2:6351)
at HTMLDocument.<anonymous> (jquery.checkout_one.min.js?1668905693:7:2372)
at n (jscript_jquery-1.7.1.min.js:2:14784)
at Object.fireWith (jscript_jquery-1.7.1.min.js:2:15553)

I do have the correct jscript_framework.php there - not sure if that's related or not.

21 Nov 2022, 7:55 PM
#2520
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

NortheastTroller:

Ok, Got that all set!

Now I'm receiving the "Sorry, but our expedited checkout process cannot be used. Click here to use our alternate checkout process." on test of Guest Checkout.

The Jscript error it pulls is Uncaught Error: Syntax error, unrecognized expression: .
at m.error (jscript_jquery-1.7.1.min.js:3:14665)
at m.filter (jscript_jquery-1.7.1.min.js:3:14605)
at m (jscript_jquery-1.7.1.min.js:3:12970)
at Function.m [as find] (jscript_jquery-1.7.1.min.js:3:24740)
at init.find (jscript_jquery-1.7.1.min.js:3:26850)
at new init (jscript_jquery-1.7.1.min.js:2:7847)
at e (jscript_jquery-1.7.1.min.js:2:6351)
at HTMLDocument.<anonymous> (jquery.checkout_one.min.js?1668905693:7:2372)
at n (jscript_jquery-1.7.1.min.js:2:14784)
at Object.fireWith (jscript_jquery-1.7.1.min.js:2:15553)

I do have the correct jscript_framework.php there - not sure if that's related or not.

That's very related, since that way-old (and hackable) version of jQuery was sunsetted many moons ago. I'll note that the Bootstrap template loads jQuery 3.5.1 ... where did that jQuery 1.7.1 version come from?