This works fine with v1.5.7: Offsite Payment
It offers the payment option for everyone, based on Geo Zone, not based on Group Pricing. Otherwise does basically the same thing.
Depends on your needs.
This works fine with v1.5.7: Offsite Payment
It offers the payment option for everyone, based on Geo Zone, not based on Group Pricing. Otherwise does basically the same thing.
Depends on your needs.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Added a fix to prevent PHP notices when the module was not installed but you visit Admin > Modules > Payment.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I have this module running nicely in v1.5.7 so customers can pay the invoice within a 14 day period. For other customers I want to add -for example- a 30 day option with its own title definition so the amount of days is also stated on the invoice. How can I do this?
Clone this module to create a new one (say invoice30).
These instructions are for cloning a shipping module but payment modules have basically the same steps (except for the quote() function).
https://docs.zen-cart.com/dev/code/m...lone_shipping/
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Ah as easy as that, totally Zen :)
Thank you!!
Instructions for cloning a payment module:
https://docs.zen-cart.com/dev/code/m...clone_payment/
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Works perfectly for my needs, thank you so much.
I'm getting undefined array key warnings when using the invoice payment method. Logs show:
Undefined array key "customer_id" in includes/modules/payment/invoice.php on line 51, and
Undefined array key "customers_group_pricing" in includes/modules/payment/invoice.php on line 54.
The warnings come up when the order detail page is brought up in the admin. No problem when the customer checks out.
The problem is that $_SESSION['customer_id'], used in line 51, is not set when the order class methods are called from the admin. That causes customers_group_pricing to not be set on line 54. My fix is to replace line 51 with the two lines shown below:
Unfortunately, customer_id is not available in the order object when the customer checks out (not sure why it's not set in the cart method of the order class), but it is available in the $_SESSION. Looks like the order class has changed in zc158 and customer_id is available in $order->info.Code:$customer_id = isset($_SESSION['customer_id']) ? $_SESSION['customer_id'] : $order->customer['id']; $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
Hope this helps someone.
Dave
zc 157c, PHP 8.0.22
Will get this fixed in June. Thanks for reporting.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
The Invoice payment method has been updated for PHP versions up to 8.2.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks