If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

Started by lat9 on 28 Jul 2016, 2:50 PM · Views: 633,765

Results 1,261 to 1,280 of 3,115
30 Jul 2019, 12:11 PM
#1261
lat9 avatar

lat9

Administrator

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

Post #1261 by lat9

jiji2018:

I am using zencart1.55F version
Installed one_page_checkout-2.1.2
There is a 155f file in the downloaded file. Must it be uploaded and overwritten?
What's the use of two files in a folder
urgent
If you mean that there's a /155f sub-directory in the installation zip-file, then: Yes, those files should be copied to your store's file-system, as identified in the link specified in the OPC readme: https://lat9.github.io/one_page_checkout/pages/install_upgrade_v210_or_later.html

30 Jul 2019, 4:18 PM
#1262
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1262 by jiji2018

Zencart1.55 F version installation 2.1.2 version.
Besides uploading files in the plug-in, do I need to manually modify two places?
Should the following screenshots be manually modified?
1.
Attachment 18575
2.
Attachment 18576

30 Jul 2019, 4:40 PM
#1263
lat9 avatar

lat9

Administrator

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

Post #1263 by lat9

jiji2018:

Zencart1.55 F version installation 2.1.2 version.
Besides uploading files in the plug-in, do I need to manually modify two places?
Should the following screenshots be manually modified?
1.
Attachment 18575
2.
Attachment 18576
Yes, as the instructions say, you'll need to provide those edits to the specified files.

30 Jul 2019, 6:40 PM
#1264
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1264 by jiji2018

Can the customer click settlement to directly jump to the registration page? Instead of letting customers choose whether to sign up or log in

30 Jul 2019, 6:56 PM
#1265
lat9 avatar

lat9

Administrator

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

Post #1265 by lat9

jiji2018:

Can the customer click settlement to directly jump to the registration page? Instead of letting customers choose whether to sign up or log in
I don't understand what you mean by click settlement. Are you referring to the guest-checkout 'registration' page?

30 Jul 2019, 7:01 PM
#1266
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #1266 by mprough

jiji2018:

Can the customer click settlement to directly jump to the registration page? Instead of letting customers choose whether to sign up or log in

I did this by simply changing checkout button(s) to the guest checkout page (index.php?main_page=checkout_one)

~Melanie

31 Jul 2019, 4:52 AM
#1267
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1267 by jiji2018

How did you modify the code page

31 Jul 2019, 2:01 PM
#1268
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1268 by jiji2018

Click "Checkout" on shopping to directly jump to the registration page.
Customers no longer have to choose whether to register or log in.
Jump straight to this page /index.php?main_page=create_account
Instead of jumping to the landing page.
How do I modify this?

Attachment 18584

Attachment 18585

1 Aug 2019, 5:18 PM
#1269
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1269 by jiji2018

mprough:

I did this by simply changing checkout button(s) to the guest checkout page (index.php?main_page=checkout_one)

~Melanie
How did you modify it?
Is there a detailed tutorial?

2 Aug 2019, 1:08 PM
#1270
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #1270 by mprough

No I modified the button to point to index.php?main_page=checkout_one

4 Aug 2019, 2:11 PM
#1271
lat9 avatar

lat9

Administrator

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

Post #1271 by lat9

I've just submitted v2.1.3 of OPC to the plugin moderators for review; I'll post back once it's available for download from Zen Cart. You can also download directly from the plugin's GitHub repository: https://github.com/lat9/one_page_checkout/releases/tag/v2.1.3

This release contains changes associated with the following GitHub issues:

#204: Add information sidebox link for the order_status page.
#206: Correct session-handling when javascript is disabled in the customer's browser.
#207: Remove unwanted guest-account address-book entries.

Note: At a minimum, I highly suggest that stores running any previous version of OPC that included the guest-checkout feature update their copy of /includes/functions/extra_functions/one_page_checkout_functions.php to use the v2.1.3 version:

<?php
// -----
// Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9 ([email protected]).
// Copyright (C) 2013-2019, Vinos de Frutas Tropicales.  All rights reserved.
//

// -----
// For versions of OPC prior to v2.1.0, it was possible that additional address-book entries were recorded
// for the temporary (guest) account.  We'll clean those up, if present, on each page-load, recording any
// addresses found for the store-owner's inspection.
//
if (defined('CHECKOUT_ONE_ENABLED') && defined('CHECKOUT_ONE_GUEST_CUSTOMER_ID')) {
    $check = $db->Execute(
        "SELECT COUNT(*) AS count
           FROM " . TABLE_ADDRESS_BOOK . "
          WHERE customers_id = " . (int)CHECKOUT_ONE_GUEST_CUSTOMER_ID,
          false,
          false,
          0,
          true
    );
    if ($check->fields['count'] > 2) {
        $entry_count = $check->fields['count'] - 2;
        $entries = $db->Execute(
            "SELECT *
               FROM " . TABLE_ADDRESS_BOOK . "
              WHERE customers_id = " . (int)CHECKOUT_ONE_GUEST_CUSTOMER_ID . "
              ORDER BY address_book_id DESC
              LIMIT $entry_count",
              false,
              false,
              0,
              true
        );
        $entries_to_remove = array();
        $log_file_name = DIR_FS_LOGS . '/opc_address_book_cleanup.log';
        error_log(date('Y-m-d H:i:s') . ": Removing $entry_count guest address-book entries." . PHP_EOL, 3, $log_file_name);
        while (!$entries->EOF) {
            error_log(str_replace(',"', ', "', json_encode($entries->fields)) . PHP_EOL, 3, $log_file_name);
            $entries_to_remove[] = $entries->fields['address_book_id'];
            $entries->MoveNext();
        }
        $db->Execute(
            "DELETE FROM " . TABLE_ADDRESS_BOOK . "
              WHERE address_book_id IN (" . implode(', ', $entries_to_remove) . ")"
        );
    }
}

// -----
// This function identifies whether (true) or not (false) the current customer session is
// associated with a guest-checkout process.
//
if (!function_exists('zen_in_guest_checkout')) {
    function zen_in_guest_checkout()
    {
        $in_guest_checkout = false;
        $GLOBALS['zco_notifier']->notify('NOTIFY_ZEN_IN_GUEST_CHECKOUT', '', $in_guest_checkout);
        return (bool)$in_guest_checkout;
    }
}

// -----
// This function identifies whether (true) or not (false) a customer is currently logged into the site.
//
if (!function_exists('zen_is_logged_in')) {
    function zen_is_logged_in()
    {
        $is_logged_in = (!empty($_SESSION['customer_id']));
        $GLOBALS['zco_notifier']->notify('NOTIFY_ZEN_IS_LOGGED_IN', '', $is_logged_in);
        return (bool)$is_logged_in;
    }
}

// -----
// This function identifies whether (true) or not (false) the current page is being accessed
// by a spider.
//
if (!function_exists('zen_is_spider_session')) {
    function zen_is_spider_session()
    {
        $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
        $spider_flag = false;
        if (zen_not_null($user_agent)) {
            $spiders = file(DIR_WS_INCLUDES . 'spiders.txt');
            for ($i=0, $n=count($spiders); $i<$n; $i++) {
                if (zen_not_null($spiders[$i]) && strpos($spiders[$i], '$Id:') !== 0) {
                    if (strpos($user_agent, trim($spiders[$i])) !== false) {
                        $spider_flag = true;
                        break;
                    }
                }
            }
        }
        return $spider_flag;
    }
}
4 Aug 2019, 7:39 PM
#1272
lat9 avatar

lat9

Administrator

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

Post #1272 by lat9

lat9:

I've just submitted v2.1.3 of OPC to the plugin moderators for review; I'll post back once it's available for download from Zen Cart. You can also download directly from the plugin's GitHub repository: https://github.com/lat9/one_page_checkout/releases/tag/v2.1.3

This release contains changes associated with the following GitHub issues:

#204: Add information sidebox link for the order_status page.
#206: Correct session-handling when javascript is disabled in the customer's browser.
#207: Remove unwanted guest-account address-book entries.

Note: At a minimum, I highly suggest that stores running any previous version of OPC that included the guest-checkout feature update their copy of /includes/functions/extra_functions/one_page_checkout_functions.php to use the v2.1.3 version:

<?php // ----- // Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9 ([email protected]). // Copyright (C) 2013-2019, Vinos de Frutas Tropicales. All rights reserved. // // ----- // For versions of OPC prior to v2.1.0, it was possible that additional address-book entries were recorded // for the temporary (guest) account. We'll clean those up, if present, on each page-load, recording any // addresses found for the store-owner's inspection. // if (defined('CHECKOUT_ONE_ENABLED') && defined('CHECKOUT_ONE_GUEST_CUSTOMER_ID')) { $check = $db->Execute( "SELECT COUNT(*) AS count FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = " . (int)CHECKOUT_ONE_GUEST_CUSTOMER_ID, false, false, 0, true ); if ($check->fields['count'] > 2) { $entry_count = $check->fields['count'] - 2; $entries = $db->Execute( "SELECT * FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = " . (int)CHECKOUT_ONE_GUEST_CUSTOMER_ID . " ORDER BY address_book_id DESC LIMIT $entry_count", false, false, 0, true ); $entries_to_remove = array(); $log_file_name = DIR_FS_LOGS . '/opc_address_book_cleanup.log'; error_log(date('Y-m-d H:i:s') . ": Removing $entry_count guest address-book entries." . PHP_EOL, 3, $log_file_name); while (!$entries->EOF) { error_log(str_replace(',"', ', "', json_encode($entries->fields)) . PHP_EOL, 3, $log_file_name); $entries_to_remove[] = $entries->fields['address_book_id']; $entries->MoveNext(); } $db->Execute( "DELETE FROM " . TABLE_ADDRESS_BOOK . " WHERE address_book_id IN (" . implode(', ', $entries_to_remove) . ")" ); } } // ----- // This function identifies whether (true) or not (false) the current customer session is // associated with a guest-checkout process. // if (!function_exists('zen_in_guest_checkout')) { function zen_in_guest_checkout() { $in_guest_checkout = false; $GLOBALS['zco_notifier']->notify('NOTIFY_ZEN_IN_GUEST_CHECKOUT', '', $in_guest_checkout); return (bool)$in_guest_checkout; } } // ----- // This function identifies whether (true) or not (false) a customer is currently logged into the site. // if (!function_exists('zen_is_logged_in')) { function zen_is_logged_in() { $is_logged_in = (!empty($_SESSION['customer_id'])); $GLOBALS['zco_notifier']->notify('NOTIFY_ZEN_IS_LOGGED_IN', '', $is_logged_in); return (bool)$is_logged_in; } } // ----- // This function identifies whether (true) or not (false) the current page is being accessed // by a spider. // if (!function_exists('zen_is_spider_session')) { function zen_is_spider_session() { $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); $spider_flag = false; if (zen_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=count($spiders); $i<$n; $i++) { if (zen_not_null($spiders[$i]) && strpos($spiders[$i], '$Id:') !== 0) { if (strpos($user_agent, trim($spiders[$i])) !== false) { $spider_flag = true; break; } } } } return $spider_flag; } } ``` Now available for download: <https://www.zen-cart.com/downloads.php?do=file&id=2095>
5 Aug 2019, 6:32 PM
#1273
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1273 by jiji2018

I am using version 2.1.2 now, I found a problem, using PayPal Express payment, when returning to the page is not a page payment.
It takes 4 clicks to complete the payment

5 Aug 2019, 7:32 PM
#1274
lat9 avatar

lat9

Administrator

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

Post #1274 by lat9

jiji2018:

I am using version 2.1.2 now, I found a problem, using PayPal Express payment, when returning to the page is not a page payment.
It takes 4 clicks to complete the payment
If you are referring to a checkout that starts with the PayPal Express 'Checkout with PayPal' button, that's expected behavior. The PPEC-button process uses the traditional 3-page checkout.

6 Aug 2019, 3:57 PM
#1275
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1275 by jiji2018

lat9:

If you are referring to a checkout that starts with the PayPal Express 'Checkout with PayPal' button, that's expected behavior. The PPEC-button process uses the traditional 3-page checkout.

Why don't you change to a one-page payment? Now customers like a one-page payment.

6 Aug 2019, 5:35 PM
#1276
lat9 avatar

lat9

Administrator

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

Post #1276 by lat9

jiji2018:

Why don't you change to a one-page payment? Now customers like a one-page payment.
If it was easy, it would have been done already. Of course, it's open-source, so you're welcome to make that update.:smile:

6 Aug 2019, 5:54 PM
#1277
stellarweb avatar

stellarweb

Zen Follower

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

Post #1277 by stellarweb

Thanks! I had this same issue on a 1.5.6c site and running the code below through the Admin's Install My SQL patches worked great!

[QUOTE=lankeeyankee;1347945]I think you're missing what I meant:```php
PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: UPDATE orders....

It looks like there is a missing column in the orders table. That is what this error message is telling you. "Unknown column 'is_guest_order'"
6 Aug 2019, 6:11 PM
#1278
lat9 avatar

lat9

Administrator

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

Post #1278 by lat9

[QUOTE=stellarweb;1360513]Thanks! I had this same issue on a 1.5.6c site and running the code below through the Admin's Install My SQL patches worked great!

lankeeyankee:

I think you're missing what I meant:```php
PHP Fatal error: 1054:Unknown column 'is_guest_order' in 'field list' :: UPDATE orders....

> It looks like there is a missing column in the orders table. That is what this error message is telling you. "Unknown column 'is_guest_order'"
Hmm, that's weird.  That field was added via admin initialization for OPC v2.0.0.  What version are you running, @stellarweb?
11 Aug 2019, 7:04 AM
#1279
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1279 by jiji2018

mprough:

I did this by simply changing checkout button(s) to the guest checkout page (index.php?main_page=checkout_one)

~Melanie

Hello, can you tell me which page you modified which code?
I never found it

11 Aug 2019, 10:59 AM
#1280
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1280 by jiji2018

How to remove the BR tag in the picture below, I want to use the DIV tag to beautify

Attachment 18604
As in the screenshot below, add a DIV tag to each of the fields
Attachment 18605