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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


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

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


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.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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 425 guests