Forums / Addon Payment Modules / Support Thread for Cash on Pickup

Support Thread for Cash on Pickup

Started by dbltoe on 28 Jan 2026, 11:54 PM · Views: 792

Results 1 to 7 of 7
28 Jan 2026, 11:54 PM
#1
dbltoe avatar

dbltoe

Totally Zenned

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

Support Thread for Cash on Pickup

This mod was created b Stephen Hewitson, updated for ZC thru 1.5.6 by Design75, and updated for ZC 2.1.0 and 2.2.0 by dbltoe.

The mod is available in the Plugins at https://www.zen-cart.com/downloads.php?do=file&id=1242 or on GitHub at https://github.com/dbltoe/Cash-on-Pickup-for-Zen-Cart/releases/tag/cashonpickup.

It's current version is 2.0.0 and, currently does not check for a previously installed version. I hope to have that included soon.

This mod allows a customer to remotely complete a sale and pay the bill when picking the item up at your location.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Nov 2026, 3:21 AM
#2
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
494
Plugin Contributions:
0

Re: Support Thread for Cash on Pickup

Hi and Thank You for your mod :)

I installed it and then decided to uninstall it for now, but I still keep keep getting 2 Error Log Files in log files?

Not sure why since it's not Installed in admin/payments, can you please help?

I do have the direct_bank_deposit-2.1.3 mod installed, Zen Cart 2.2.2, on PHP 8.2 with OPC and Responsive Classic Redesign Template.

[02-Nov-2026 14:14:41 Australia/Sydney] Request URI: /admin/index.php?cmd=modules&set=payment&module=cop, IP address: 60.000.000.000, Language id 1
#0 /includes/modules/payment/cop.php(134): zen_debug_error_handler()
#1 /admin/modules.php(190): cop->check()
#2 /admin/index.php(16): require('/home/......')
--> PHP Deprecated: Creation of dynamic property cop::$_check is deprecated in /includes/modules/payment/cop.php on line 134.

[02-Nov-2026 14:14:41 Australia/Sydney] Request URI: /admin/index.php?cmd=modules&set=payment&module=cop, IP address: 60.000.000.000, Language id 1
#0 /includes/modules/payment/cop.php(134): zen_debug_error_handler()
#1 /includes/functions/functions_general_shared.php(556): cop->check()
#2 /admin/modules.php(239): zen_update_modules_cache()
#3 /admin/index.php(16): require('/home/......')
--> PHP Deprecated: Creation of dynamic property cop::$_check is deprecated in /includes/modules/payment/cop.php on line 134.

AND the BELOW

[02-Nov-2026 11:34:07 Australia/Sydney] Request URI: /admin/index.php?cmd=modules&set=payment&module=dirbankaus&action=edit, IP address: 60.---.---.---, Language id 1
#0 /includes/modules/payment/cop.php(134): zen_debug_error_handler()
#1 /admin/modules.php(190): cop->check()
#2 /admin/index.php(16): require('/home/......')
--> PHP Deprecated: Creation of dynamic property cop::$_check is deprecated in /includes/modules/payment/cop.php on line 134.

[02-Nov-2026 11:34:07 Australia/Sydney] Request URI: /admin/index.php?cmd=modules&set=payment&module=dirbankaus&action=edit, IP address: 60.000.000.000, Language id 1
#0 /includes/modules/payment/cop.php(134): zen_debug_error_handler()
#1 /includes/functions/functions_general_shared.php(556): cop->check()
#2 /admin/modules.php(239): zen_update_modules_cache()
#3 /admin/index.php(16): require('/home/......')
--> PHP Deprecated: Creation of dynamic property cop::$_check is deprecated in /includes/modules/payment/cop.php on line 134.

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

2 Nov 2026, 4:39 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Support Thread for Cash on Pickup

Thanks for the report, and you did nothing wrong. This one is on me.

The log entry comes from a property I never declared in cop.php. PHP 8.2 and later log that as a deprecation. It doesn't break anything, so your store is fine.

It still shows up after an uninstall because Remove under Modules > Payment only deletes the module's settings. The files stay on the server, and Zen Cart loads every file in includes/modules/payment each time that page opens. That's why you see it with module=dirbankaus too.

My download also didn't include uninstall directions, and it should have. Here they are.

To remove the mod completely

First, delete these files. Do the admin files first, because they recreate the database entries on every admin page.

  • YOUR_ADMIN/includes/auto_loaders/config.cash_on_pickup.php
  • YOUR_ADMIN/includes/init_includes/init_cash_on_pickup.php
  • YOUR_ADMIN/includes/installers/cash_on_pickup/ (the whole folder)
  • YOUR_ADMIN/includes/languages/english/extra_definitions/lang.cash_on_pickup.php
  • includes/modules/payment/cop.php
  • includes/languages/english/modules/payment/lang.cop.php

Then paste this into Tools > Install SQL Patches to clear what's left in the database:

DELETE FROM configuration WHERE configuration_key = 'CASH_ON_PICKUP_VERSION';
DELETE FROM configuration_group WHERE configuration_group_title = 'Cash on Pickup';
DELETE FROM admin_pages WHERE page_key = 'configCashOnPickup';

If you'd rather keep the mod

Open includes/modules/payment/cop.phpfind this line near the top:

public ?int $order_status = null;

and add this line right below it:

protected $_check;

The log entry stops after that.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Nov 2026, 4:55 AM
#4
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
494
Plugin Contributions:
0

Re: Support Thread for Cash on Pickup

Thank you for that :)

I just added the (protected $_check;) to the cop.php file as I'd like to keep the mod.

Errors are gone, thanks again!

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

2 Nov 2026, 5:07 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Support Thread for Cash on Pickup

Stay tuned, I'll be pushing version 3.0.0 to GitHub in a little bit.

It'll follow my latest trend of being encapsulated and compatible with ZC 1.5.8 - 3.0.0 and PHP 7.4 - 8.5.

It will include instructions on switching from the old to the new.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Nov 2026, 6:01 AM
#6
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Support Thread for Cash on Pickup

Cash on Pickup v3.0.0 is out: https://github.com/dbltoe/Cash-on-Pickup-for-Zen-Cart/releases/tag/v3.0.0

@rlexyd this is the one I mentioned. I rebuilt the mod as an encapsulated plugin for Zen Cart 1.5.8 through 3.0.0 and PHP 7.4 through 8.5.

What's fixed

  • The cop::$_check log entry is gone.
  • With the module removed but its file left on the server, working on a past Cash on Pickup order in admin was a fatal error on PHP 8.
  • With a Payment Zone set, customers in that zone saw Cash on Pickup on every shipping method. It's now Store Pickup only, and the zone applies to it.
  • On One Page Checkout, Cash on Pickup didn't appear after a switch to Store Pickup until the page was reloaded. The page now refreshes for that one change.

What's new

  • Allow Guest Checkout, a new setting that's off by default. One Page Checkout guests have no account with you, so they don't see Cash on Pickup unless you turn it on. If guests were using it on v2.0.0, turn this on after you move.
  • Install, Upgrade and Uninstall in the Plugin Manager.
  • Uninstall directions, which the old download never had.
  • A note under Modules > Payment if Store Pickup shipping isn't enabled.

Moving from v2.0.0 or earlier

Your settings and past orders carry over. Delete the old files first, and the Plugin Manager will name any it finds. The readme has the list. On Zen Cart 1.5.8 through 2.1.x you'll also need the two bridge files in the package's for_zen_cart_1.5.8_to_2.1.x folder.

@rlexyd glad the one-line fix got you going, and since you're keeping the mod, there's no rush. It's worth moving up when you can, though. That line only stops the log entry, so the Payment Zone and One Page Checkout problems above are still there, and the fatal error above will hit you if you ever remove the module with cop.php left on the server. When you're ready, your edited cop.php goes with the other old files. Delete them, upload zc_plugins, install it under Modules > Plugin Manager, then click Settings. Your Modules > Payment settings will still be there.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Nov 2026, 8:21 PM
#7
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
494
Plugin Contributions:
0

Re: Support Thread for Cash on Pickup

Thank you again for updating the Mod, will do as suggested :)

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!