Post by broopenc3 » Fri Jun 15, 2018 8:25 pm

Hello forum,

I am trying to multiply the bank payments (opencart 3.0.2.0).

At first I try to copy the files under admin and catalog > (model, view, language...)/extensions/payment/ ()
and paste them with different name like banktransfer2.php and banktransfer3.php

then I tried to replace inside of each file the words bank_transfer with bank_transfer2 and bank_transfer3.php

However when I finish and try to edit the payment in the admin section in my website I get http 500 error page not working.


What am I doing wrong. Thank anyone in advance for the help.
Last edited by broopenc3 on Fri Jun 15, 2018 10:15 pm, edited 1 time in total.

New member

Posts

Joined
Fri Mar 16, 2018 7:09 pm

Post by straightlight » Fri Jun 15, 2018 9:27 pm

No OC version posted. Check your server access logs for the recent errors of 500.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Fri Jun 15, 2018 9:47 pm

You need to change also in .twg files...

LE. Try now

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by broopenc3 » Fri Jun 15, 2018 10:13 pm

xxvirusxx wrote:
Fri Jun 15, 2018 9:47 pm
You need to change also in .twg files...
I did. I think it is the following list (correct me if I miss something):

Admin
/admin/controller/extension/payment
/admin/language/en-gb/extension/payment
/admin/view/template/extension/payment

Catalog
/catalog/controller/extension/payment
/catalog/language/en-gb/extension/payment
/catalog/model/extension/payment

New member

Posts

Joined
Fri Mar 16, 2018 7:09 pm

Post by straightlight » Fri Jun 15, 2018 10:14 pm

Forgot to mention the TWIG debug tool from the Marketplace which also helps.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by broopenc3 » Fri Jun 15, 2018 10:14 pm

straightlight wrote:
Fri Jun 15, 2018 9:27 pm
No OC version posted. Check your server access logs for the recent errors of 500.
Opencart 3 (included in the title)
But you are right. I will edit the post and include it.

Useful tip. I will check the server logs. Thank you

New member

Posts

Joined
Fri Mar 16, 2018 7:09 pm

Post by xxvirusxx » Fri Jun 15, 2018 10:16 pm

I made you bank transfer 2 ocmod...just install and work.

Attachments

Screenshot_2018-06-15_17-16-57.png

Screenshot_2018-06-15_17-16-57.png (20.82 KiB) Viewed 542 times


My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by broopenc3 » Sat Jun 16, 2018 1:24 am

xxvirusxx wrote:
Fri Jun 15, 2018 10:16 pm
I made you bank transfer 2 ocmod...just install and work.
you are awesome! ;) it works perfectly! Big thanx!!!

New member

Posts

Joined
Fri Mar 16, 2018 7:09 pm

Post by Arsons.Knife » Sat Jul 28, 2018 4:53 am

xxvirusxx wrote:
Fri Jun 15, 2018 9:47 pm
You need to change also in .twg files...

LE. Try now
Hello,
Thanks for awesome extension.
I download your files and upload to my OC Version 3.0.2.0 directory this work perfect for bank transfer2, I need more bank transfers I replace transfer2 to transfer3 in all files and save the file with transfer3. This show in payment extension so I add the extension but when click on edit icon then blank page appear. Please help how to copy for many bank transfers.

Thanks!

Newbie

Posts

Joined
Sat Jul 28, 2018 4:41 am

Post by broopenc3 » Mon Sep 10, 2018 2:47 pm

Arsons.Knife wrote:
Sat Jul 28, 2018 4:53 am
xxvirusxx wrote:
Fri Jun 15, 2018 9:47 pm
You need to change also in .twg files...

LE. Try now
Hello,
Thanks for awesome extension.
I download your files and upload to my OC Version 3.0.2.0 directory this work perfect for bank transfer2, I need more bank transfers I replace transfer2 to transfer3 in all files and save the file with transfer3. This show in payment extension so I add the extension but when click on edit icon then blank page appear. Please help how to copy for many bank transfers.

Thanks!
The most I can do is to say that you can edit the files and change every variable name or file name that ends with 2 and replace 2 with 3 (not only the transfer# variables). However, when I tried to create the files myself I failed but maybe I am stup... hmmm I mean I did something wrong. I hope I helped. Cheers!

New member

Posts

Joined
Fri Mar 16, 2018 7:09 pm
Who is online

Users browsing this forum: No registered users and 8 guests