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

One-Page Checkout [Support Thread]

Views: 629,458

Results 1,061 to 1,080 of 3,078
27 Feb 2019, 3:09 PM
#1061
linuxguy2 avatar

linuxguy2

Zen Follower

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

One-Page Checkout [Support Thread]

lat9:

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.

I'll get the changes from github and test.
Thank You very much for your time and expertise!
You Guy's ROCK!

27 Feb 2019, 10:53 PM
#1062
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

I'll get the changes from github and test.
Thank You very much for your time and expertise!
You Guy's ROCK!

Tested with "Guest Checkout" FALSE and tried several different settings.
Used the base order.php file
The one in the plugin caused problems.

Set Payment to "Money Order" and Shipping to "Flat".
Then I had to have "Free Charger" and "Store Pickup" enabled before I did not get the below notices.

Is there another way to disable the "free" stuff in Admin because when I disabled them in the (Admin Modules) Payment and Shipping I got these errors.

Disabled Free Charger error

[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558

Disabled Store Pickup error

[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: tax in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_checkout_one_shipping.php on line 34

Also under certain settings these defines in "checkout_one_extra_definitions.php" show a warning as already defined in another place/file

define('FREE_SHIPPING_TITLE', 'Free Shipping');
define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');

If I use the order.php from the plugin I get these errors

[27-Feb-2019 22:36:38 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 354
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Trying to get property 'title' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 354
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 355
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Trying to get property 'code' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 355
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Undefined variable: coupon_code in /home/pc/public_html/156a/includes/classes/order.php on line 356
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Trying to get property 'fields' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 356
[27-Feb-2019 22:36:38 UTC] PHP Notice:  Undefined index: shipping in /home/pc/public_html/156a/includes/classes/order.php on line 363

Thanks,

28 Feb 2019, 1:10 PM
#1063
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@linuxguy2, I'm now lost as to what you're trying to do. Other than those notices and warnings (which I'll investigate further), is the zc156+OPC not processing the checkout for you?

As mentioned in post #1060, the version of the order.php class currently distributed by OPC should not be used for zc156+ installations -- use the version contained in the Zen Cart distribution instead.

28 Feb 2019, 4:12 PM
#1064
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

lat9:

@linuxguy2, I'm now lost as to what you're trying to do. Other than those notices and warnings (which I'll investigate further), is the zc156+OPC not processing the checkout for you?

As mentioned in post #1060, the version of the order.php class currently distributed by OPC should not be used for zc156+ installations -- use the version contained in the Zen Cart distribution instead.

Yes, I can process orders thru checkout!
Appologies if my message was confusing.
I was trying to provide additional information that one would get that last block of errors if they used the OPC plugin order.php.

On the test site I can complete the entire customer experience with Payment set to "moneyorder" and Shipping set to "flat".
BUT I have to have "freecharger" and "storepickup" enabled or I get the below notices.

[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558
[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: tax in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_checkout_one_shipping.php on line 34

ADDITIONALLY
I have applied your OPC updates to my production site on which I am using Payment Module "purchaseorder" (the PO_Number plugin) and all's well as long as I also enable "freecharger"
Without also enabling freecharger I am getting this notice.

[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558

Thank You for your time!

28 Feb 2019, 4:25 PM
#1065
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Thanks for the clarification, @linuxguy2, I'll attempt to get those warnings and notices reproduced and corrected.

28 Feb 2019, 9:21 PM
#1066
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

Tested with "Guest Checkout" FALSE and tried several different settings.
Used the base order.php file
The one in the plugin caused problems.

Set Payment to "Money Order" and Shipping to "Flat".
Then I had to have "Free Charger" and "Store Pickup" enabled before I did not get the below notices.

Is there another way to disable the "free" stuff in Admin because when I disabled them in the (Admin Modules) Payment and Shipping I got these errors.

Disabled Free Charger error

[27-Feb-2019 21:22:25 UTC] PHP Notice: Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558

> 
> Disabled Store Pickup error
> ```
[27-Feb-2019 21:22:25 UTC] PHP Notice:  Undefined index: tax in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_checkout_one_shipping.php on line 34

Also under certain settings these defines in "checkout_one_extra_definitions.php" show a warning as already defined in another place/file

define('FREE_SHIPPING_TITLE', 'Free Shipping');
define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');

> ...
> 
> Thanks,
The log

[27-Feb-2019 21:22:25 UTC] PHP Notice: Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558

is coming from /includes/modules/payment.php in the Zen Cart base when "Free Charger" is disabled.  I'll be opening a zencart GitHub issue, since I'm unclear as to the expected return values from the **zen_get_configuration_key_value** function, as there are 20 uses of that function within the Zen Cart base code.

The issue is that the payment-class is checking to see that **MODULE_PAYMENT_FREECHARGER_STATUS** is present in the database and, when the payment-method is not installed, it's not.
1 Mar 2019, 12:51 PM
#1067
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Noting that I've opened a Zen Cart GitHub issue (https://github.com/zencart/zencart/issues/2184) to track the change(s) required to correct the above scenario.

2 Mar 2019, 5:41 PM
#1068
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

... On the test site I can complete the entire customer experience with Payment set to "moneyorder" and Shipping set to "flat".
BUT I have to have "freecharger" and "storepickup" enabled or I get the below notices.

[27-Feb-2019 21:22:25 UTC] PHP Notice: Undefined index: configuration_value in /home/pc/public_html/156a/includes/functions/functions_lookups.php on line 558
[27-Feb-2019 21:22:25 UTC] PHP Notice: Undefined index: tax in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_checkout_one_shipping.php on line 34

> ...
@linuxguy2, could you provide a bit more information regarding how you disabled **storepickup**?  I've tried removing it as well as disabling it, but am unable to reproduce that second PHP Notice logged.
2 Mar 2019, 10:59 PM
#1069
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

lat9:

@linuxguy2, could you provide a bit more information regarding how you disabled storepickup? I've tried removing it as well as disabling it, but am unable to reproduce that second PHP Notice logged.

I just install/uninstalled storepickup in the "Modules Menu"
Same with freecharger

That was an out-of-the-box install test site with the latest OPC installed, no option changes except for the mentioned (Module settings)in the admin.
I'll have to go back and reproduce that.
It may be tomorrow before I get back to it.

My configuration settings:

One-Page Checkout Settings
Title	Value	Action 
Version/Release Date	2.0.5 (2018-12-23)	 
Enable One-Page Checkout?	true	 
Enable: Customer List		 
Update Shipping AJAX Time-out	5000	 
Payment-Block Action on Shipping Change	no-update	 
Enable Shipping=Billing?	true	 
Payment Methods Requiring Confirmation	eway_rapid,stripepay,gps	 
Load Minified Script Files?	false	 
Order Status: Slamming Control	3	 
Login-Page Layout	L;P,G,C;B	 
Enable Guest Checkout?	false	 
Guest Checkout: Require Email Confirmation?	false	 
Guest Checkout: Pages Allowed Post-Checkout	download	 
Guest Checkout: Disallowed Pages	account, account_edit, account_history, account_history_info, account_newsletters, account_notifications, account_password, address_book, address_book_process, create_account_success, gv_redeem, gv_send, password_forgotten, product_reviews_write, unsubscribe 
Guest Checkout: Disallowed Credit Class Order-Totals	ot_gv	 
Guest Checkout: Disallowed Payment Methods	moneyorder, cod	 
Enable Account Registration?	false	

NOTE (Different build)
No storepickup issues on my soon to be production build on which I have multiple plugins installed.
However If I disable freecharger I get a notice.

3 Mar 2019, 4:18 AM
#1070
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

Upps...More issues:

When on the checkout page clicking the "Save Changes" button under any circumstances generates one of these errors for every entry in the address form.

[03-Mar-2019 03:53:05 UTC] PHP Notice:  Undefined index: countries_iso_code_2 in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 451
[03-Mar-2019 03:53:05 UTC] PHP Notice:  Undefined index: countries_iso_code_3 in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 451
[03-Mar-2019 03:53:05 UTC] PHP Notice:  Undefined index: entry_country_id in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 452
[03-Mar-2019 03:53:05 UTC] PHP Notice:  Undefined index: address_format_id in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 453
3 Mar 2019, 6:06 PM
#1071
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

Upps...More issues:

When on the checkout page clicking the "Save Changes" button under any circumstances generates one of these errors for every entry in the address form.

[03-Mar-2019 03:53:05 UTC] PHP Notice: Undefined index: countries_iso_code_2 in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 451
[03-Mar-2019 03:53:05 UTC] PHP Notice: Undefined index: countries_iso_code_3 in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 451
[03-Mar-2019 03:53:05 UTC] PHP Notice: Undefined index: entry_country_id in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 452
[03-Mar-2019 03:53:05 UTC] PHP Notice: Undefined index: address_format_id in /home/pcsnnets/public_html/156a/includes/classes/order.php on line 453

Phew, that one took a bit of investigation!  Corrected via this (<https://github.com/lat9/one_page_checkout/issues/169>) GitHub issue.

The problem was that when neither Guest Checkout nor Registered Accounts were enabled, the plugin's observer no longer monitored the address-related notifications.  When a customer changed their address to a temporary one, the temporary address was not being filled into the order's billing and/or shipping blocks.
3 Mar 2019, 6:08 PM
#1072
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

Noting that I've opened a Zen Cart GitHub issue (https://github.com/zencart/zencart/issues/2184) to track the change(s) required to correct the above scenario.
I've created a GitHub PR (Pull Request), providing a correction for those issues.

3 Mar 2019, 10:12 PM
#1073
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

lat9:

I've created a GitHub PR (Pull Request), providing a correction for those issues.

Thanks for the update.

Have done lots of testing today while building out my production site and nothing new has popped op.
I have not tested with any other types of payment or shipping.

Thank You for your time and expertise!!!!

5 Mar 2019, 6:29 PM
#1074
archelaus avatar

archelaus

New Zenner

Join Date:
Jul 2008
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi, I have what seems to be a minor bug to report. I'm running OPC 2.0.5 and ZC 1.5.6a, with the latter's shipping module set to Zone Rates. In guest checkout, when I enter a billing address in one country, then uncheck the shipping=billing box and enter a shipping address in another country, the shipping charge quite rightly changes to the amount for the second country. BUT, if I then change my mind and re-click the shipping=billing box, the shipping charge remains stuck at the amount for the second country. (Note that this glitch does NOT happen if I log into an account instead of doing guest checkout.) Anyway, I realize the situation is one that will almost never arise in real life, but it came up while I was putting the plugin through its paces, so I thought you would want to be aware of it. In any event, thank you for designing a very useful product!

5 Mar 2019, 6:51 PM
#1075
linuxguy2 avatar

linuxguy2

Zen Follower

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

Re: One-Page Checkout [Support Thread]

archelaus:

Hi, I have what seems to be a minor bug to report. I'm running OPC 2.0.5 and ZC 1.5.6a, with the latter's shipping module set to Zone Rates. In guest checkout, when I enter a billing address in one country, then uncheck the shipping=billing box and enter a shipping address in another country, the shipping charge quite rightly changes to the amount for the second country. BUT, if I then change my mind and re-click the shipping=billing box, the shipping charge remains stuck at the amount for the second country. (Note that this glitch does NOT happen if I log into an account instead of doing guest checkout.) Anyway, I realize the situation is one that will almost never arise in real life, but it came up while I was putting the plugin through its paces, so I thought you would want to be aware of it. In any event, thank you for designing a very useful product!

archelaus
On the OPC admin page if you have "Enable One-Page Checkout Debug? Full" you should be getting PHP notices/errors in the Logs. (Two places System root / and your cart root.)
You may already be aware of this but OPC is being update. You might review some of the latest unreleased fixes for 1.5.6a noted here.
https://github.com/lat9/one_page_checkout

5 Mar 2019, 7:27 PM
#1076
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

archelaus:

Hi, I have what seems to be a minor bug to report. I'm running OPC 2.0.5 and ZC 1.5.6a, with the latter's shipping module set to Zone Rates. In guest checkout, when I enter a billing address in one country, then uncheck the shipping=billing box and enter a shipping address in another country, the shipping charge quite rightly changes to the amount for the second country. BUT, if I then change my mind and re-click the shipping=billing box, the shipping charge remains stuck at the amount for the second country. (Note that this glitch does NOT happen if I log into an account instead of doing guest checkout.) Anyway, I realize the situation is one that will almost never arise in real life, but it came up while I was putting the plugin through its paces, so I thought you would want to be aware of it. In any event, thank you for designing a very useful product!
Thanks for the report! I've noted the issue on OPC's GitHub repository and will investigate later this week.

5 Mar 2019, 7:32 PM
#1077
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

archelaus
On the OPC admin page if you have "Enable One-Page Checkout Debug? Full" you should be getting PHP notices/errors in the Logs. (Two places System root / and your cart root.)
You may already be aware of this but OPC is being update. You might review some of the latest unreleased fixes for 1.5.6a noted here.
https://github.com/lat9/one_page_checkout
The code changes are the easy part!:blush:

The hard part with v2.1.0 for OPC is documenting the process that you'll need to use when updating, as the majority of OPC's core/template file changes are now included in the zc156/zc156a (and to-be-released zc156b) distributions. I'm trying to create an overall set of procedures to be used when updating or performing an initial install for Zen Cart versions prior to zc156b ... it's kind of like "putting Humpty Dumpty back together again"!

5 Mar 2019, 8:45 PM
#1078
archelaus avatar

archelaus

New Zenner

Join Date:
Jul 2008
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

linuxguy2:

archelaus
On the OPC admin page if you have "Enable One-Page Checkout Debug? Full" you should be getting PHP notices/errors in the Logs. (Two places System root / and your cart root.)
You may already be aware of this but OPC is being update. You might review some of the latest unreleased fixes for 1.5.6a noted here.
https://github.com/lat9/one_page_checkout

Thanks, linuxguy2!

5 Mar 2019, 8:46 PM
#1079
archelaus avatar

archelaus

New Zenner

Join Date:
Jul 2008
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Thanks for the report! I've noted the issue on OPC's GitHub repository and will investigate later this week.

Glad to help. Thanks again!

6 Mar 2019, 12:48 AM
#1080
archelaus avatar

archelaus

New Zenner

Join Date:
Jul 2008
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

OPC 2.0.5 and ZC 1.5.6a. I hate to waste people's time with something I should be able to figure out by myself, but I'm stumped. In guest checkout, the customer's billing address is pre-filling with the state/province listed for the store in Configuration>My Store and the zip code listed for the store in Configuration>Shipping/Packaging. I'm okay with it defaulting to USA, but I'd like state and zip code to be blank. I'm not seeing anything in Configuration>One-Page Checkout Settings, and the code in tpl_modules_opc_address_block.php is over my head. Thanks in advance!