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

One-Page Checkout [Support Thread]

Views: 629,450

Results 1,221 to 1,240 of 3,078
24 Jun 2019, 12:31 AM
#1221
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

One-Page Checkout [Support Thread]

lat9:

@RixStix, you've got it (other than that required edit to your template's /common/tpl_header.php).

Cindy, on a fresh 1.5.6b install I have loaded the files in the separate 1.5.6b directory as well - so what do I need to do to correct that apparent error? - delete all files uploaded from that directory and then reload the corresponding files in the unlabeled directory? ... anything else? Would that have anything to do with the warning I am getting "not recognizing the credit card'?

Did you receive the error log files I emailed?

cheers,
Mike

24 Jun 2019, 10:57 AM
#1222
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

RixStix:

Looking in zc156b responsive_classic and my clone of responsive_classic

zc156b\includes\templates\responsive_classic\common\tpl_header.php

if ($_SESSION['customer_id']) {

> has already been changed in the distribution files to
> ```
if (zen_is_logged_in() && !zen_in_guest_checkout()) {

Thanks for that reminder, Rick ... that's (additional) good news for a fresh zc156b install with a fresh clone of the*** responsive_classic*** template! That change still applies to sites that are dragging their previous template along.

shags38:

Cindy, on a fresh 1.5.6b install I have loaded the files in the separate 1.5.6b directory as well - so what do I need to do to correct that apparent error? - delete all files uploaded from that directory and then reload the corresponding files in the unlabeled directory? ... anything else? Would that have anything to do with the warning I am getting "not recognizing the credit card'?

Did you receive the error log files I emailed?

cheers,
Mike
Mike, that shouldn't be a problem, since the files in the 156b sub-directory are from the zc156 distribution just bringing zc156/zc156a up to the zc156b level.

Yes, I reviewed those logs; check your email for my response.

27 Jun 2019, 5:52 PM
#1223
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

shags38:

Hi Cindy, short answer is Payments Pro (Canada - suggested by PayPal) - both Express Checkout and Payments Pro are enabled - as far as I am aware Express is required to be enabled for Pro to be activated - Payments Pro is required for OPC, Express is used for 'checkout with PayPal' in standard inbuilt process - right?.

The error occurs using the credit card payment option in Guest Checkout at the very last stage when 'confirm order' is pressed.

The PayPal settings are exactly the same (copied DB) in the problematic new build site (dazzlersharmonynecklace.com) as in the existing 1.5.5f site (harmonyballpendant.com) where everything there works fine - the only differences between the two is the domain name and that the new build is 1.5.6b

The new build site (it is a 're-branded clone' of harmonyballpendant.com) is live with robots.txt set to Disallow: / .... until guest checkout is sorted (and HBP not yet redirected)

Would it be helpful if I enable OPC error logs and try another transaction and send you the log?

cheers,
Mike
I've created a GitHub issue (https://github.com/lat9/one_page_checkout/issues/203) to track the changes for this unwanted behavior, which affects all payment methods that 'collect credit cart information on-site'.

The jist is that for this processing, the call to the *zcAjaxPayment *processing to initiate that confirmation sends back some jQuery to be run at document ready. The OPC AJAX was being too quick with its form-submission so that the payment-method processing wasn't being run.

The correction is to (a) ensure that the payment methods' jQuery runs on the *ajaxComplete *event and (b) stage OPC's form-submittal to the **end **of the ajaxComplete event.

27 Jun 2019, 11:09 PM
#1224
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I've created a GitHub issue (https://github.com/lat9/one_page_checkout/issues/203) to track the changes for this unwanted behavior, which affects all payment methods that 'collect credit cart information on-site'.

The jist is that for this processing, the call to the *zcAjaxPayment *processing to initiate that confirmation sends back some jQuery to be run at document ready. The OPC AJAX was being too quick with its form-submission so that the payment-method processing wasn't being run.

The correction is to (a) ensure that the payment methods' jQuery runs on the *ajaxComplete *event and (b) stage OPC's form-submittal to the **end **of the ajaxComplete event.

Thank you so much Cindy for the fix - very much appreciated.

cheers,
Mike

30 Jun 2019, 11:02 PM
#1225
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

OPC 2.1.1 installed in zc 156b

Not losing any sleep here because still playing in the sandbox.

Guest checkout
Item purchased: FREE downloadable file
Step through checkout with email address, phone, etc.
Payment selection is a bit confusing showing credit cards and a line for free order but no radio button.
Attachment 18524
Complete the checkout process.

Success screen as expected for a normal checkout with a link to the downloadable file(s) which functions as expected.

The comment about

You can also download your products at a later time at 'My Account'

is on the screen. That is really an impossibility, isn't it?

If the checkout success screen is exited without paying attention to the link, how does a customer get to the download file at a later date?

I think this might be a 'haven't thought about that moment' or a Rick forgot to take his nap moment.

1 Jul 2019, 12:24 PM
#1226
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

If the customer checked out as a guest, they can access their download via the orders_status page. I'll see what's going on with the scenario you posed (i.e. a checkout with a free download) later today.

2 Jul 2019, 7:37 PM
#1227
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

If the customer checked out as a guest, they can access their download via the orders_status page. I'll see what's going on with the scenario you posed (i.e. a checkout with a free download) later today.
When I checked-out a Sample of Document Product Type using Guest Checkout, the text on the checkout_success page reads:

You can view the status of this order by going to the Order Status page and supplying this order number and your email address.
Please direct any questions to customer service.

That text is defined in /includes/languages/english/checkout_success_guest.php (or overridden in YOUR_TEMPLATE) and is displayed by the tpl_checkout_success_guest.php file, present in /template_default but possibly overridden by YOUR_TEMPLATE.

2 Jul 2019, 7:48 PM
#1228
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.1.2 to the Zen Cart moderators for review and will post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#201: Virtual orders can't be checked out; correct the root-cause, not the symptom.
#202: Correct PHP Notice on checkout_success after guest-checkout.
#203: Correct integration with payment methods that "collect credit-card data onsite".

2 Jul 2019, 7:51 PM
#1229
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Thanks Cindy,

I did find the new checkout success page for guest.
I've never seen a link to an order status page anywhere other than on the checkout success page which makes it difficult later. Maybe there's a link in the email confirmation. Regardless, I'm sorry to stir the nest with questions that I could have/should have answered myself.

2 Jul 2019, 8:00 PM
#1230
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

RixStix:

Thanks Cindy,

I did find the new checkout success page for guest.
I've never seen a link to an order status page anywhere other than on the checkout success page which makes it difficult later. Maybe there's a link in the email confirmation. Regardless, I'm sorry to stir the nest with questions that I could have/should have answered myself.
OPC comes with an 'Orders Status' sidebox which not-logged-in customers can use to lookup their previous orders. The text associated with 'where to find my order's history' is also slightly modified for guest-checkout, pointing them to the orders_status page rather than to their (non-existing) account!

2 Jul 2019, 9:23 PM
#1231
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

TNX again Cindy

I'll have a look at the OPC docs to figure out the where and how to enable that sidebox (or what I did wrong).

Have a good 4th

5 Jul 2019, 10:05 AM
#1232
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

The trifocals are blurry at this hour. I've gone over and over a new install on 1.5.5f. Followed the instructions for first time on 1.5.5f and get partial main page load with the changes to includes/templates/YOUR_TEMPLATE/common/tpl_header.php```
[05-Jul-2019 09:55:50 UTC] PHP Fatal error: Call to undefined function zen_is_logged_in() in /home/******/public_html/includes/templates/sepia/common/tpl_header.php on line 132

[05-Jul-2019 09:55:50 UTC] Request URI: /index.php?main_page=index, IP address: 216.177.186.199
--> PHP Fatal error: Call to undefined function zen_is_logged_in() in /home/******/public_html/includes/templates/sepia/common/tpl_header.php on line 132.

:sleepy:
Newest from GitHub BTW
5 Jul 2019, 11:17 AM
#1233
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

dbltoe:

The trifocals are blurry at this hour. I've gone over and over a new install on 1.5.5f. Followed the instructions for first time on 1.5.5f and get partial main page load with the changes to includes/templates/YOUR_TEMPLATE/common/tpl_header.php```
[05-Jul-2019 09:55:50 UTC] PHP Fatal error: Call to undefined function zen_is_logged_in() in /home/******/public_html/includes/templates/sepia/common/tpl_header.php on line 132

[05-Jul-2019 09:55:50 UTC] Request URI: /index.php?main_page=index, IP address: 216.177.186.199
--> PHP Fatal error: Call to undefined function zen_is_logged_in() in /home/******/public_html/includes/templates/sepia/common/tpl_header.php on line 132.

> :sleepy:
> Newest from GitHub BTW
Are you sure you copied /includes/functions/extra_functions/one_page_checkout_functions.php?  That's where that function would be defined for a Zen Cart version prior to 1.5.6.
5 Jul 2019, 2:12 PM
#1234
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

lat9:

Are you sure you copied /includes/functions/extra_functions/one_page_checkout_functions.php? That's where that function would be defined for a Zen Cart version prior to 1.5.6.
Well, I did not forget that file. I actually put the entire includes folder one level up from public_html as there was a typo in the username for the FTP directories.:blush:

Where's my Pobody's Nerfect sign.

5 Jul 2019, 5:09 PM
#1235
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

dbltoe:

Well, I did not forget that file. I actually put the entire includes folder one level up from public_html as there was a typo in the username for the FTP directories.:blush:

Where's my Pobody's Nerfect sign.
I believe that I stole it!:P

6 Jul 2019, 3:16 PM
#1236
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

I've just submitted v2.1.2 to the Zen Cart moderators for review and will post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#201: Virtual orders can't be checked out; correct the root-cause, not the symptom.
#202: Correct PHP Notice on checkout_success after guest-checkout.
#203: Correct integration with payment methods that "collect credit-card data onsite".
Now available for download!

6 Jul 2019, 7:24 PM
#1237
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

OPC comes with an 'Orders Status' sidebox which not-logged-in customers can use to lookup their previous orders. The text associated with 'where to find my order's history' is also slightly modified for guest-checkout, pointing them to the orders_status page rather than to their (non-existing) account!

I hope this is not a snake (or at least not a poisonous one) but I have yet to find an Orders Status sidebox to enable. Can you give me a hint?

7 Jul 2019, 11:34 AM
#1238
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

RixStix:

I hope this is not a snake (or at least not a poisonous one) but I have yet to find an Orders Status sidebox to enable. Can you give me a hint?
You're right (I hope you didn't look for too long); there's an order_status page that should have a link in the site's information sidebox.

I'll update OPC's documentation to indicate that a template-override is required for /includes/modules/sidebox/information.php, adding that link. Unfortunately, it appears that I 'lost' that Orders' Status sidebox link name somewhere along the way, so the quick fix is to modify your template's copy of that sidebox, e.g. /includes/modules/sidebox/MY_TEMPLATE/information.php to read:

<?php
/**
 * information sidebox - displays list of general info links, as defined in this file
 *
 * @package templateSystem
 * @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: DrByte 2019 Jan 04 Modified in v1.5.6a $
 */

  unset($information);

  if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
  }
  if (DEFINE_PRIVACY_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
  }
  if (DEFINE_CONDITIONS_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
  }
  if (DEFINE_CONTACT_US_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>';
  }
[B]//-bof-one-page-checkout-lat9  *** 1 of 1 ***
  if (defined('FILENAME_ORDER_STATUS')) {
    if (!defined('BOX_INFORMATION_ORDER_STATUS')) {
        define('BOX_INFORMATION_ORDER_STATUS', 'Order Status');
    }
    $information[] = '<a href="' . zen_href_link(FILENAME_ORDER_STATUS, '', 'SSL') . '">' . BOX_INFORMATION_ORDER_STATUS . '</a>';
  }
//-eof-one-page-checkout-lat9  *** 1 of 1 ***
[/B]
// forum/bb link:
  if (!empty($external_bb_url) && !empty($external_bb_text)) {
    $information[] = '<a href="' . $external_bb_url . '" target="_blank">' . $external_bb_text . '</a>';
  }

  if (DEFINE_SITE_MAP_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
  }

  // only show GV FAQ when installed
  if (defined('MODULE_ORDER_TOTAL_GV_STATUS') && MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
  }
  // only show Discount Coupon FAQ when installed
  if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && defined('MODULE_ORDER_TOTAL_COUPON_STATUS') && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
  }

  if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  }

  require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');

  $title =  BOX_HEADING_INFORMATION;
  $title_link = false;

  require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);

... and I'll get that constant added to the OPC distribution and update the documentation accordingly!

7 Jul 2019, 11:54 AM
#1239
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've created a GitHub issue to track the above change: https://github.com/lat9/one_page_checkout/issues/204

8 Jul 2019, 5:26 PM
#1240
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

[QUOTE=lat9;1359362]You're right (I hope you didn't look for too long); there's an order_status page that should have a link in the site's information sidebox.

I'll get that added later. Didn't kill myself looking but enough so that I wouldn't feel really bad when/if you pointed to that snake :-)

I was looking for a separate side box instead of a link in an existing box but do have the Information sidebox turned on.

TNX again