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

One-Page Checkout [Support Thread]

Views: 629,541

Results 1,701 to 1,720 of 3,078
17 Jul 2020, 7:26 PM
#1701
lat9 avatar

lat9

Administrator

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

One-Page Checkout [Support Thread]

mprough:

Disabling adv shipper made no difference and the console isn't reporting any additional errors. Standard Zen Cart checkout is working fine in either case. I am happy to share login creds and site in PM if you want to look.
Sure, send them on. If you'll install "Display Logs" so that I can 'see' what's going on, I'll only need admin-login credentials.

18 Jul 2020, 1:39 PM
#1702
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

Sure, send them on. If you'll install "Display Logs" so that I can 'see' what's going on, I'll only need admin-login credentials.
The checkout-loop that @mprough reported in post #1693 above was due to the changes made in #1692, which applied the id="OPC" to **all **order-totals, causing OPC's jQuery to pick up the value of the order's sub-total instead of the total.

That discrepancy was the cause of the checkout-loop. Here's the correction for the Bootstrap template's /templates/tpl_modules_order_total.php:

<?php
/**
 * Module Template
 * 
 * BOOTSTRAP v1.0.BETA
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 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: tpl_modules_order_totals.php 2993 2006-02-08 07:14:52Z birdbrain $
 */
 ?>
<?php 
/**
 * Displays order-totals modules' output
 */
  for ($i=0; $i<$size; $i++) { ?>
<?php
//-20200718-lat9-Only apply the id="OPC" for the order's total
$value_parameter =  ($GLOBALS[$class]->code == 'ot_total') ? ' id="OPC"' : '';
?>

<tr id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">
<td colspan="2" class="text-right">
<?php echo $GLOBALS[$class]->output[$i]['title']; ?>
</td>
<td class="text-left"<?php echo $value_parameter; ?>>
<?php echo $GLOBALS[$class]->output[$i]['text']; ?>
</td> 
    </tr>
<?php } ?>

If you're using that, you'll also need to change the OPC's order-total selector's configuration as identified in post #1692 above!

18 Jul 2020, 9:44 PM
#1703
johnniejetski2 avatar

johnniejetski2

New Zenner

Join Date:
Dec 2017
Location:
FLAH-DUH
Posts:
45
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I see 160 odd pages of discussion, can you narrow it down for ae a little bit? is there a link to the answer ?

19 Jul 2020, 11:09 AM
#1704
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

johnniejetski2:

I see 160 odd pages of discussion, can you narrow it down for ae a little bit? is there a link to the answer ?
I've identified Melanie's two posts by their post numbers which appear in the respective post's date/time header, to the right.

20 Jul 2020, 2:19 PM
#1705
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I have an odd issue and trouble tracking it down.

OPC 2.1.4
Zen Cart 1.5.6c

The order confirmation emails for guest checkout have the billing and shipping address as a single line of text (https://prnt.sc/tczh24). Regular account order confirmation emails appear correctly with each line of the address on it's own line.

I'm having trouble tracking down where this issue might be coming from. I've been tracking down $email_text in /includes/classes/observers/class.checkout_one_observer.php
but not having any luck solving this.

20 Jul 2020, 3:22 PM
#1706
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jeking:

I have an odd issue and trouble tracking it down.

OPC 2.1.4
Zen Cart 1.5.6c

The order confirmation emails for guest checkout have the billing and shipping address as a single line of text (https://prnt.sc/tczh24). Regular account order confirmation emails appear correctly with each line of the address on it's own line.

I'm having trouble tracking down where this issue might be coming from. I've been tracking down $email_text in /includes/classes/observers/class.checkout_one_observer.php
but not having any luck solving this.
Jim, there have been 86 commits (i.e. code changes) since OPC v2.1.4 was released last September. The various releases are documented here: https://github.com/lat9/one_page_checkout/releases.

You might try applying the change documented here: https://github.com/lat9/one_page_checkout/commit/3d85a60ce8bbac1e2d4e19543ed7ef8eb03ea130#diff-edd07917697f777566af4be9e4aca26e

20 Jul 2020, 5:09 PM
#1707
simon1066 avatar

simon1066

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

ZCv1.56c
OPCv2.3.2 (pretty sure still applies in OPC v2.3.3)

A code change request - I think I've got this right.

In the various customer address blocks - store side, the placeholder alert asterisk (ENTRY_STATE_TEXT) is placed inside the state field when it is not a dropdown:

tpl_modules_checkout_new_address.php

echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');

tpl_modules_address_book_details.php

 echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');

not so in tpl_modules_opc_address_block.php

 echo zen_draw_input_field($state_field_name, $address['state'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . " id=\"$state_field_id\"");
    if (zen_not_null(ENTRY_STATE_TEXT)) {
        echo '<span class="alert">' . ENTRY_STATE_TEXT . '</span>';
    }

The placeholder is outside of the state field, I think it could do with being inside it. I've dabbled but can't seem to add the placeholder after the state_field_id without breaking it.

Edit: forgot to include tpl_modules_create_account.php in my examples

20 Jul 2020, 6:50 PM
#1708
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

I feel stupid asking this... but what file is missing when the checkout page only displays stuff like the following instead of the actual text. I have triple checked the install - concentrating on the /english files - and everything looks fine to me.......

Home :: NAVBAR_TITLE_1 :: NAVBAR_TITLE_2
HEADING_TITLE

TEXT_CHECKOUT_ONE_TOP_INSTRUCTIONS
TITLE_BILLING_SHIPPING_ADDRESS

Using latest 1.3.3 and this shows on
https://xxxxxxxxxxxxxx.com/catalog/index.php?main_page=checkout_one

20 Jul 2020, 7:25 PM
#1709
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

I feel stupid asking this... but what file is missing when the checkout page only displays stuff like the following instead of the actual text. I have triple checked the install - concentrating on the /english files - and everything looks fine to me.......

Home :: NAVBAR_TITLE_1 :: NAVBAR_TITLE_2
HEADING_TITLE

TEXT_CHECKOUT_ONE_TOP_INSTRUCTIONS
TITLE_BILLING_SHIPPING_ADDRESS

Using latest 1.3.3 and this shows on
https://xxxxxxxxxxxxxx.com/catalog/index.php?main_page=checkout_one
Look for /includes/languages/english/checkout_one.php; check your template's language-override (/includes/languages/english/YOUR_TEMPLATE/checkout_one.php).

20 Jul 2020, 8:33 PM
#1710
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

lat9:

Look for /includes/languages/english/checkout_one.php; check your template's language-override (/includes/languages/english/YOUR_TEMPLATE/checkout_one.php).

THANKS!!!! That worked! I triple checked that and missed it each time! lol

21 Jul 2020, 12:11 AM
#1711
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

On a new 1.5.7 site, when I checkout - PPExpress - after I get to the paypal side and confirm, I get the dreaded Warning an error occurred please refresh etc etc
I also get it what going to customers/orders. Here is the error log if someone can help

[20-Jul-2020 23:55:12 UTC] Request URI: /catalog/2020/index.php?cmd=orders, IP address: 162.72.107.178
#1  trigger_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:170]
#2  queryFactory->show_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:142]
#3  queryFactory->set_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:269]
#4  queryFactory->Execute() called at [/home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php:58]
#5  OnePageCheckoutAdminObserver->update() called at [/home/afamblck/public_html/catalog/includes/classes/class.base.php:118]
#6  base->notify() called at [/home/afamblck/public_html/catalog/2020/orders.php:1253]
#7  require(/home/afamblck/public_html/catalog/2020/orders.php) called at [/home/afamblck/public_html/catalog/2020/index.php:11]
--> PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: SELECT is_guest_order
                           FROM zen_orders
                          WHERE orders_id = 4581
                          LIMIT 1 ==> (as called by) /home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php on line 58 <== in /home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php on line 170.
21 Jul 2020, 11:02 AM
#1712
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

On a new 1.5.7 site, when I checkout - PPExpress - after I get to the paypal side and confirm, I get the dreaded Warning an error occurred please refresh etc etc
I also get it what going to customers/orders. Here is the error log if someone can help

[20-Jul-2020 23:55:12 UTC] Request URI: /catalog/2020/index.php?cmd=orders, IP address: 162.72.107.178
#1 trigger_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php:58]
#5 OnePageCheckoutAdminObserver->update() called at [/home/afamblck/public_html/catalog/includes/classes/class.base.php:118]
#6 base->notify() called at [/home/afamblck/public_html/catalog/2020/orders.php:1253]
#7 require(/home/afamblck/public_html/catalog/2020/orders.php) called at [/home/afamblck/public_html/catalog/2020/index.php:11]
--> PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: SELECT is_guest_order
FROM zen_orders
WHERE orders_id = 4581
LIMIT 1 ==> (as called by) /home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php on line 58 <== in /home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php on line 170.

You've somehow caused OPC's admin initialization scripts to not run; the ***orders::is_guest_order*** field has been in use by OPC since v2.0.0.  What version of OPC is in effect on the zc157 site?
21 Jul 2020, 2:42 PM
#1713
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Jim, there have been 86 commits (i.e. code changes) since OPC v2.1.4 was released last September. The various releases are documented here: https://github.com/lat9/one_page_checkout/releases.

You might try applying the change documented here: https://github.com/lat9/one_page_checkout/commit/3d85a60ce8bbac1e2d4e19543ed7ef8eb03ea130#diff-edd07917697f777566af4be9e4aca26e

This did the trick. Thank you for pointing it out! :smile:

21 Jul 2020, 3:58 PM
#1714
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

It is the latest one you posted a week or so ago - I think 1.3.3

21 Jul 2020, 4:03 PM
#1715
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

It is the latest one you posted a week or so ago - I think 1.3.3
Fresh install or upgrade?

21 Jul 2020, 4:48 PM
#1716
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

lat9:

Fresh install or upgrade?

Fresh install

22 Jul 2020, 11:28 AM
#1717
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

Fresh install
I've no idea what you've done, but for zc157 OPC's (other than a couple of CSS files and a minor change to the information side-box) a drop-in install. The admin installation should have added that element to the orders table, just like it adds its configuration settings to the configuration table.

Were/are there any admin-related debug-logs?

22 Jul 2020, 5:20 PM
#1718
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

Leave it to me to screw up a simple process!!!!

I THINK what I posted was an admin log - I get a reegular log error and the adm one and the both look much the same. I am posting the NON adm error log here - there are some subtle differences.

Would it help to reinstall the admin files?

Here is the code:

[21-Jul-2020 00:01:42 UTC] Request URI: /catalog/index.php?main_page=checkout_process, IP address: 162.72.107.178
#1  trigger_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:170]
#2  queryFactory->show_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:142]
#3  queryFactory->set_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:269]
#4  queryFactory->Execute() called at [/home/afamblck/public_html/catalog/includes/classes/observers/CheckoutOneEmailObserver.php:62]
#5  CheckoutOneEmailObserver->update() called at [/home/afamblck/public_html/catalog/includes/classes/class.base.php:118]
#6  base->notify() called at [/home/afamblck/public_html/catalog/includes/functions/functions_osh_update.php:89]
#7  zen_update_orders_history() called at [/home/afamblck/public_html/catalog/includes/modules/payment/paypalwpp.php:501]
#8  paypalwpp->after_process() called at [/home/afamblck/public_html/catalog/includes/classes/payment.php:261]
#9  payment->after_process() called at [/home/afamblck/public_html/catalog/includes/modules/pages/checkout_process/header_php.php:17]
#10 require(/home/afamblck/public_html/catalog/includes/modules/pages/checkout_process/header_php.php) called at [/home/afamblck/public_html/catalog/index.php:35]
--> PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: SELECT is_guest_order
                       FROM zen_orders
                      WHERE orders_id = 4582
                      LIMIT 1 ==> (as called by) /home/afamblck/public_html/catalog/includes/classes/observers/CheckoutOneEmailObserver.php on line 62 <== in /home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php on line 170.

lat9:

I've no idea what you've done, but for zc157 OPC's (other than a couple of CSS files and a minor change to the information side-box) a drop-in install. The admin installation should have added that element to the orders table, just like it adds its configuration settings to the configuration table.

Were/are there any admin-related debug-logs?

22 Jul 2020, 5:27 PM
#1719
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

I just re-uploaded the admin files. OPC is turned to FALSE. I go to the orders page - which is blank with the error and get the following adm file

Also -this is a pretty "vanilla" site with only a couple of mods.

[22-Jul-2020 17:23:24 UTC] Request URI: /catalog/2020/index.php?cmd=orders, IP address: 162.72.107.178
#1  trigger_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:170]
#2  queryFactory->show_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:142]
#3  queryFactory->set_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:269]
#4  queryFactory->Execute() called at [/home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php:58]
#5  OnePageCheckoutAdminObserver->update() called at [/home/afamblck/public_html/catalog/includes/classes/class.base.php:118]
#6  base->notify() called at [/home/afamblck/public_html/catalog/2020/orders.php:1253]
#7  require(/home/afamblck/public_html/catalog/2020/orders.php) called at [/home/afamblck/public_html/catalog/2020/index.php:11]
--> PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: SELECT is_guest_order
                           FROM zen_orders
                          WHERE orders_id = 4582
                          LIMIT 1 ==> (as called by) /home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php on line 58 <== in /home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php on line 170.
22 Jul 2020, 6:53 PM
#1720
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

I just re-uploaded the admin files. OPC is turned to FALSE. I go to the orders page - which is blank with the error and get the following adm file

Also -this is a pretty "vanilla" site with only a couple of mods.

[22-Jul-2020 17:23:24 UTC] Request URI: /catalog/2020/index.php?cmd=orders, IP address: 162.72.107.178
#1 trigger_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php:58]
#5 OnePageCheckoutAdminObserver->update() called at [/home/afamblck/public_html/catalog/includes/classes/class.base.php:118]
#6 base->notify() called at [/home/afamblck/public_html/catalog/2020/orders.php:1253]
#7 require(/home/afamblck/public_html/catalog/2020/orders.php) called at [/home/afamblck/public_html/catalog/2020/index.php:11]
--> PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: SELECT is_guest_order
FROM zen_orders
WHERE orders_id = 4582
LIMIT 1 ==> (as called by) /home/afamblck/public_html/catalog/2020/includes/classes/observers/OnePageCheckoutAdminObserver.php on line 58 <== in /home/afamblck/public_html/catalog/includes/classes/db/mysql/query_factory.php on line 170.

Somehow, part of OPC's installation didn't run.  You need to run the database uninstall.sql provided in the plugin's /docs sub-directory.  Then those missing database elements will be re-added on an admin-page refresh.