Support

Home Forums Event Espresso Premium Duplicating Payment Options (or a better solution!)

Duplicating Payment Options (or a better solution!)

Posted: August 5, 2013 at 8:27 am


Christopher Barnard

August 5, 2013 at 8:27 am

Hi,

Espresso includes payment options for Purchase Order and Cash Transfer – but neither in their default state covered what I needed which is essentially to attach an invoice. So to cover both I have chose Invoice Payment which allows people to download an invoice. Accept now I really need two options for this to cover Cash Transfer and PO.

I’m assuming I can just duplicate the necessary files in the ‘gateways’ folder – but how would I have them appear as two options in the back-end?

Or is the a smarter way!?

Regards

Chris


Josh

  • Support Staff

August 5, 2013 at 10:06 am

Hi Chris,

Duplicate the files will not work because you’d end up duplicating functions, which would then throw fatal errors because functions can not be declared twice.

What would work is to activate all three options, but set the invoice payment option to not display on the payment overview page. Then if you place the [invoice_link] email shortcode in the registration confirmation email they can download an invoice.


Christopher Barnard

August 5, 2013 at 10:25 am

Ah yes of course I’d be duplication functions :-/

I really need the invoice link to be present in the payment page – but maybe saying it will be sent in an e-mail makes more sense anyway.

Chris


Josh

  • Support Staff

August 6, 2013 at 9:51 am

Another thing you can try is copy the section of code that displays an invoice link from /gateways/invoice/invoice_vars.php into the other two gateways x_vars.php files where you want a download invoice link to be displayed.

The support post ‘Duplicating Payment Options (or a better solution!)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso