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

One-Page Checkout [Support Thread]

Views: 629,427

Results 1,041 to 1,060 of 3,078
12 Feb 2019, 5:14 AM
#1041
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

One-Page Checkout [Support Thread]

PHP 7.2
ZC verion 156a "classic template"
Up and running with no issues.

How do you disable the display of the header on the "Check Out" Page?
NOTE:
I was able to successfully do this for the "Login" page.

I tried putting a "checkout_one" directory with tpl_header.php un-commenting this code in it per the below instructions.

$flag_disable_header = true;

The page displays but when I "submit" the order or try to change an address nothing happens.
All other links on the page respond.

NOTE:
I was able to successfully do this for the "Login" page.

  • Common Template - tpl_header.php
  • this file can be copied to /templates/your_template_dir/pagename<br />
  • example: to override the privacy page<br />
  • make a directory /templates/my_template/privacy<br />
  • copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
  • to override the global settings and turn off the footer un-comment the following line:<br />
    ? * <br /> /
    $flag_disable_header = true;
    /
  • @package templateSystem
  • @copyright Copyright 2003-2016 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:01:06 2015 -0400 Modified in v1.5.5 $
    Yada Yada...
12 Feb 2019, 1:37 PM
#1042
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 - after checking out with OPC on the checkout success page SITE/index.php?main_page=checkout_success I am seeing the following;
Checkout Success Sample Text ...

Checkout Success Sample Text ...

A few words about the approximate shipping time or your processing policy for guest-checkout would be put here.

This section of text is from the Define Pages Editor located under Tools in the Admin.
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 you have to customer service.

> 
> in admin/tools/define pages editor/checkout success ... I inserted customized text when the site was built but that text is not showing - have I missed a file merge or something?
> 
> cheers, Mike
Mike, you'll need to provide content for /includes/languages/english/html_includes/define_checkout_success**_guest**.php.
12 Feb 2019, 1:50 PM
#1043
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

PHP 7.2
ZC verion 156a "classic template"
Up and running with no issues.

How do you disable the display of the header on the "Check Out" Page?
NOTE:
I was able to successfully do this for the "Login" page.

I tried putting a "checkout_one" directory with tpl_header.php un-commenting this code in it per the below instructions.

$flag_disable_header = true;

> 
> The page displays but when I "submit" the order or try to change an address nothing happens.
> All other links on the page respond.
> 
> NOTE:
> I was able to successfully do this for the "Login" page.
> 
>  * Common Template - tpl_header.php
>  *
>  * this file can be copied to /templates/your_template_dir/pagename<br />
>  * example: to override the privacy page<br />
>  * make a directory /templates/my_template/privacy<br />
>  * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
>  * to override the global settings and turn off the footer un-comment the following line:<br />
> ? * <br /> */
>  $flag_disable_header = true;
>  /*
>  * @package templateSystem
>  * @copyright Copyright 2003-2016 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:01:06 2015 -0400 Modified in v1.5.5 $
> Yada Yada...
I was able to disable the header on the checkout_one page by adding the file /includes/modules/pages/checkout_one/header_php_no_header.php containing
<?php $flag_disable_header = true; ``` To also disable the header on the checkout_one_confirmation page, just copy that file to the /includes/modules/pages/checkout_one_confirmation directory.
12 Feb 2019, 3:56 PM
#1044
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I was able to disable the header on the checkout_one page by adding the file /includes/modules/pages/checkout_one/header_php_no_header.php containing

<?php $flag_disable_header = true; ``` > To also disable the header on the checkout_one_confirmation page, just copy that file to the /includes/modules/pages/checkout_one_confirmation directory. VERY GOOD!!! :clap: If that is documented someplace I could not find it... While we're at it is there a way to get Zen cart to add the hyphens when entering phone numbers with an iPhone or iPad telephone keypad. (Not the regular keyboard) ( Like when you are registering a new account) Thank You Very Much!!
14 Feb 2019, 3:52 PM
#1045
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

I've been trying to add a customer field to tpl_modules_opc_customer_info.php. I chased down all of the instances and added my field, but haven't had any luck storing it in checkout, nor the database.

I am calling the stored value on checkout success with an observer class for another application. I can't even get it stored in the session.

Do you have any idea or documentation for customer fields in guest checkout?

Thanks in advance

15 Feb 2019, 6:46 PM
#1046
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

mprough:

I've been trying to add a customer field to tpl_modules_opc_customer_info.php. I chased down all of the instances and added my field, but haven't had any luck storing it in checkout, nor the database.

I am calling the stored value on checkout success with an observer class for another application. I can't even get it stored in the session.

Do you have any idea or documentation for customer fields in guest checkout?

Thanks in advance
I suggest reviewing the notifications issued by /includes/classes/OnePageCheckout.php. I *believe *that there are sufficient call-outs to allow you to add fields without requiring a change to OPC's base files.

If you have some handling that's required that is not covered by the current notifications, I'll be happy to create additional notifications.

15 Feb 2019, 9:53 PM
#1047
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

I got it working, I'm just passing it in the session because it really doesn't need stored =)
Thank you

20 Feb 2019, 2:38 PM
#1048
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 Wonderful plugin. Thank you for all your time on this.

Question: with guest checkout the customer details require the 'Save Changes' button to be clicked. Might there be a way to avoid that? Maybe it's me, but it took me some time trouble shooting to figure out that was the cause for not being able to complete an order. It's just not a logical part of checkout, to have to save field entries like that, so I'd suspect shoppers will do the same thing.

20 Feb 2019, 5:05 PM
#1049
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jeking:

@lat9 Wonderful plugin. Thank you for all your time on this.

Question: with guest checkout the customer details require the 'Save Changes' button to be clicked. Might there be a way to avoid that? Maybe it's me, but it took me some time trouble shooting to figure out that was the cause for not being able to complete an order. It's just not a logical part of checkout, to have to save field entries like that, so I'd suspect shoppers will do the same thing.
@jeking, I'll give your request some consideration. Just noting that the change will be fairly 'intrusive', changing the templates' structure and the AJAX processing as well as OPC's 'core' class.

Issue created on the plugin's GitHub repository for tracking: https://github.com/lat9/one_page_checkout/issues/163

23 Feb 2019, 2:15 PM
#1050
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

At the moment I am having to use v1.5.5f

In the instructions it says 'css_js_loader' has to be loaded first. However in those instruction it says 'Composer' has to be download and installed before 'css_js_loader' is. What does 'Composer' do?

23 Feb 2019, 2:36 PM
#1051
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

adb34:

At the moment I am having to use v1.5.5f

In the instructions it says 'css_js_loader' has to be loaded first. However in those instruction it says 'Composer' has to be download and installed before 'css_js_loader' is. What does 'Composer' do?
Are you, perhaps, confusing One-Page Checkout with Fast and Easy Checkout? *OPC *has never had a requirement for the css_js_loader.

23 Feb 2019, 5:27 PM
#1052
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

mprough:

I got it working, I'm just passing it in the session because it really doesn't need stored =)
Thank you

What was your solution?
Can you share the code your used?

the reason I ask is I'm having trouble adding the "Company" And extra fields to the Admin email sent when a new customer signs up. (functions_email.php) Couldn't find detailed instructions anyplace.
Otherwise the Additional Customer Fields at Sign Up plugin is working fine.

(Using ZC 1.5.6a "Green Classic template" & running on PHP 7.2)

I did not have this problem with 1.5.1.
Here is the code I used in 1.5.1 but it does not work in 1.5.6a.
Only testing with "Company" right now will add 2 of the Extra fields after I get this resolved.

functions_email.php

Around Line 600
//  function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
(Changed to)
  function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {

Around line 630
 ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
	  /////////////// Added Company Field  //////////////////
	  ($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
 ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
23 Feb 2019, 11:09 PM
#1053
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

linuxguy2:

What was your solution?
Can you share the code your used?

the reason I ask is I'm having trouble adding the "Company" And extra fields to the Admin email sent when a new customer signs up. (functions_email.php) Couldn't find detailed instructions anyplace.
Otherwise the Additional Customer Fields at Sign Up plugin is working fine.

(Using ZC 1.5.6a "Green Classic template" & running on PHP 7.2)

I did not have this problem with 1.5.1.
Here is the code I used in 1.5.1 but it does not work in 1.5.6a.
Only testing with "Company" right now will add 2 of the Extra fields after I get this resolved.

functions_email.php

Around Line 600
// function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
(Changed to)
function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {

Around line 590
($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
/////////////// Added Company Field //////////////////
($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .


Problem SOLVED
After many hours of toiling over a smoking keyboard the only logical conclusion was the "extra_info" array wasn't being created.
Hope this helps some other non-coder like myself in the future.

In includes/modules/your_template/create_account.php I hadn't added the necessary code to generate the "extra_info" array

Around line 440
ORIGINAL : 

$extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax']);

MODIFIED:
	```
 $extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $company, $extrafield, $extrafield2, $street_address, $suburb, $city, $state, $postcode, $extrafield4);

Then of course this mod in /includes/functions/email_functions.php around line 590
ORIGINAL

function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {

MODIFIED

function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {

AND modify/add: around line 610

$extra_info['HTML'] = '<table width="100%" class="extra-info">' .
   '<tr><td class="extra-info-bold" colspan="2">' . OFFICE_USE . '</td></tr>' .
   '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_FROM . '</td><td>' . $from . '</td></tr>' .
   //'<tr><td class="extra-info-bold">' . OFFICE_EMAIL. '</td><td>' . $email_from . '</td></tr>' .	  
   ($login_email !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_EMAIL . '</td><td>' . $login_email . '</td></tr>' : '') .	  
   ($login !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_NAME . '</td><td>' . $login . '</td></tr>' : '') .
   ($company != '' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
   ($extrafield != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD . '</td><td>' . $extrafield . '</td></tr>' : '') .
   ($street_address != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS . '</td><td>' . $street_address . '</td></tr>' : '') .
   ($suburb != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS_LINE2 . '</td><td>' . $suburb . '</td></tr>' : '') .
   ($city != '' ?'<tr><td class="extra-info-bold">' . OFFICE_CITY . '</td><td>' . $city . '</td></tr>' : '') .
   ($state != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STATE . '</td><td>' . $state . '</td></tr>' : '') .
   ($postcode != '' ? '<tr><td class="extra-info-bold">' . OFFICE_POSTCODE . '</td><td>' . $postcode . '</td></tr>' : '') .	  
   ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
   ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
    ($extrafield2 != '' ? '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_EXTRAFIELD2 . '</td><td>' . $extrafield2 . '</td></tr>' : '') .	
   ($extrafield4 != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD4 . '</td><td>' . $extrafield4 . '</td></tr>' : '') .
   '<tr><td class="extra-info-bold">' . " " . '</td><td>' . " " . '</td></tr>' .		
   '<tr><td class="extra-info-bold">' . OFFICE_IP_ADDRESS . '</td><td>' . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . '</td></tr>' .	  
   '<tr><td class="extra-info-bold">' . OFFICE_HOST_ADDRESS . '</td><td>' . $email_host_address . '</td></tr>' .
   '<tr><td class="extra-info-bold">' . OFFICE_DATE_TIME . '</td><td>' . date('D M j Y G:i:s T') . '</td></tr>';
24 Feb 2019, 12:45 PM
#1054
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Are you, perhaps, confusing One-Page Checkout with Fast and Easy Checkout? *OPC *has never had a requirement for the css_js_loader.

Oh??????? I will have to get back on that one. Sorry if I have got it wrong. My bad

26 Feb 2019, 7:39 PM
#1055
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

The order.php has issues, when you click "Checkout" from the Shopping Cart page or refresh the checkout page it throws errors.
I have tested under several different conditions but my latest testing was a out-of-the-box install of 1.5.6a on PHP 7.2 with the default green classic template.
Added a couple products.
Payment module was Money Order
location was the default Florida state.
OPC debug set to FULL

Note: OPC order.php needs updating for 1.5.6a or more explanation as there are major differences from OPC order.php.
As far as I can tell all the files except order.php are very much the same as 1.5.6a

I tested with the following:
OPC order.php
Original order.php
MERGED order.php
All three tests post very similar PHP warnings.
Also note even though I've selected the green classic template in a couple cases it's looking in the responsive_classic template

myDEBUG-20190226-180718-210765-log

[26-Feb-2019 18:07:18 UTC] Request URI: /156a/index.php?main_page=checkout_one, IP address: 76.182.229.147
#1  require(/home/pc/public_html/156a/includes/modules/pages/checkout_one/header_php.php) called at [/home/pc/public_html/156a/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/pc/public_html/156a/includes/modules/pages/checkout_one/header_php.php on line 321.

[26-Feb-2019 18:07:18 UTC] Request URI: /156a/index.php?main_page=checkout_one, IP address: 76.182.229.147
#1  require(/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php) called at [/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_checkout_one_default.php:67]
#2  require(/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_checkout_one_default.php) called at [/home/pc/public_html/156a/includes/templates/responsive_classic/common/tpl_main_page.php:171]
#3  require(/home/pc/public_html/156a/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/pc/public_html/156a/index.php:97]
--> PHP Warning: Invalid argument supplied for foreach() in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 44.

pc_com.php.error-log

[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 354
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'title' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 354
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 355
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'code' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 355
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined variable: coupon_code in /home/pc/public_html/156a/includes/classes/order.php on line 356
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'fields' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 356
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: shipping in /home/pc/public_html/156a/includes/classes/order.php on line 363
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant FREE_SHIPPING_TITLE already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_shipping.php on line 26
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant FREE_SHIPPING_DESCRIPTION already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_shipping.php on line 27
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant MODULE_ORDER_TOTAL_COUPON_HEADER already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_coupon.php on line 14
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant SHIPPING_NOT_INCLUDED already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_gv.php on line 13
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant TAX_NOT_INCLUDED already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_gv.php on line 14
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: coupon_is_valid_for_sales in /home/pc/public_html/156a/includes/functions/functions_gvcoupons.php on line 113
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: id in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 20
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: id in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 43
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: fields in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 44
[26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: coupon_is_valid_for_sales in /home/pc/public_html/156a/includes/functions/functions_gvcoupons.php on line 113

Thank You for you time

26 Feb 2019, 8:06 PM
#1056
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

The single change in the as-distributed /includes/classes/order.php is already included in zc156+. Just restore that file to its Zen Cart "base" version.

Is "Money Order" one of the payment methods allowed for guest-checkout?

26 Feb 2019, 9:25 PM
#1057
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

The single change in the as-distributed /includes/classes/order.php is already included in zc156+. Just restore that file to its Zen Cart "base" version.

Is "Money Order" one of the payment methods allowed for guest-checkout?

Guest checkout is disabled.
On the "Confirm Order" page "Check/Money Order" and Free Order are listed under the Payment section. Those are the default in the admin modules payment selection page.
I am not using any CC processing selections.

On the Order Total Modules page everything is enabled except the ot_cod_fee

Let me add that on my production build I will be using the PO_Number plugin.
I will never be using the guest-checkout function.
NOTE: I get these same errors on my production build where I am using the PO_Number mod and it's my only selection.

26 Feb 2019, 9:35 PM
#1058
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

linuxguy2:

Guest checkout is disabled.
On the "Confirm Order" page "Check/Money Order" and Free Order are listed under the Payment section. Those are the default in the admin modules payment selection page.
I am not using any CC processing selections.

On the Order Total Modules page everything is enabled except the ot_cod_fee

Let me add that on my production build I will be using the PO_Number plugin.
I will never be using the guest-checkout function.
NOTE: I get these same errors on my production build where I am using the PO_Number mod and it's my only selection.

If I add a cc I get the same error

27 Feb 2019, 11:49 AM
#1059
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Did you revert to the as-shipped zc156 /includes/classes/order.php?

27 Feb 2019, 2:57 PM
#1060
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Just did a test install of OPC 2.0.5 on zc156a.

I'll note that the majority of the core-file overwrites required for zc155 are no longer required as the notifications are now "baked into" the base Zen Cart code. The two exceptions (on cursory inspection) are the changes required to /includes/modules/pages/login/header_php.php and to /includes/modules/order_total/ot_coupon.php; the remaining core files from the OPC distribution should not be copied for a zc156 install.

I've corrected (for v2.0.6) the issues identified by @linuxguy2 in post #1055 on OPC's GitHub repository and will be reworking the distribution layout and/or installation instructions for Zen Cart 1.5.6.