Forums / Addon Payment Modules / Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Views: 157,758

Results 61 to 80 of 86
8 Aug 2016, 2:18 PM
#61
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

marton_1:

v155 Character limit on MODULE_PAYMENT_INVOICE_TEXT_TITLE

When people select to pay by invoice I want to put my payment details on their invoice.

I do not want to print payment details on every invoice, only the ones that are not already paid (by paypal, credit cards, et.)

I would suggest modifying the invoice rather than doing what you are doing.

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.

4 Jan 2018, 10:14 AM
#62
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Forgot to reply, turned out that modifying the invoice to to show payment details only on invoices for the invoice payment method was easy to do.
Good suggestion!

4 Jan 2018, 3:10 PM
#63
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

I have been using this plug in for some time.
Now I tried setting a discount but the discount does not show up in the final price

I made the change in invoice.php to allow all customers to select payment by invoice, maybe this causes the problem?

	// fix the group check, change to true MH
       if ($check_flag_group == false) {
        $this->enabled = true;

I want to give a single (same) discount to every customer, maybe I could just set a variable with my required %?

13 Jan 2018, 9:41 AM
#64
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

marton_1:

I have been using this plug in for some time.
Now I tried setting a discount but the discount does not show up in the final price

I made the change in invoice.php to allow all customers to select payment by invoice, maybe this causes the problem?

// fix the group check, change to true MH
   if ($check_flag_group == false) {
    $this->enabled = true;
> 
> I want to give a single (same) discount to every customer, maybe I could just set a variable with my required %?

I did not explain well! 
If I manually add a customer to the group named invoice then the discount shows up OK.  

I had hoped that my change in invoice.php to allow all customers to select "payment by invoice" would also give the discount defined in the group named invoice to all customers who had selected payment by invoice.  Sadly this did not work for me.
Is there a way to do this?
13 Jan 2018, 12:13 PM
#65
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Invoice is a payment module.
There is a discounting module that discounts by payment method that you can use to associate a discount with payment method invoice.
https://www.zen-cart.com/downloads.php?do=file&id=1487

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.

13 Jan 2018, 12:24 PM
#66
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Great thanks

13 Jan 2018, 8:29 PM
#67
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Good tip, thanks

Easy to install, works fine, does exactly what I wanted.

Thanks again.

7 Feb 2019, 12:05 AM
#68
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Sort of off topic but anyway!
There are companies around that buy your invoices for a % of the sale amount and then they handle the debt collection.

Trick is to find companies who already have a zen cart plugin to manage the invoicing process, any experiences or recommendations to share?

BTW, good to see this Invoice Payment Method plug in was updated for v156. The Forum Support Thread link for this plugin does not point to this threadè

19 Jan 2021, 12:55 AM
#69
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Does anyone have this functioning with ZC 1.5.7?

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

19 Jan 2021, 9:34 PM
#71
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Carbonless:

Does anyone have this functioning with ZC 1.5.7?
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.

29 Sep 2021, 6:02 PM
#72
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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.

10 Nov 2021, 8:11 PM
#73
cydonian avatar

cydonian

New Zenner

Join Date:
Jan 2013
Location:
Netherlands
Posts:
7
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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?

10 Nov 2021, 8:14 PM
#74
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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/modules/clone_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.

10 Nov 2021, 9:10 PM
#75
cydonian avatar

cydonian

New Zenner

Join Date:
Jan 2013
Location:
Netherlands
Posts:
7
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Ah as easy as that, totally Zen :)
Thank you!!

14 Nov 2021, 1:46 PM
#76
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Instructions for cloning a payment module:
https://docs.zen-cart.com/dev/code/modules/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.

28 Mar 2023, 9:02 PM
#77
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

Works perfectly for my needs, thank you so much.

29 May 2023, 6:05 PM
#78
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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:

$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 . "'");

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.
Hope this helps someone.
Dave
zc 157c, PHP 8.0.22

29 May 2023, 6:08 PM
#79
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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.

1 Jun 2023, 7:49 PM
#80
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Pay by invoice ("bill me later"/"store credit account"/Pay Later/Layaway)

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.