ATS Larry Posted December 20, 2013 Report Share Posted December 20, 2013 How can I duplicate the 'Offline Payment' module in Blesta? I have various different 'Offline Payment' options and I want to rename and have different modules for the different options, instead of craming ALL options into 1. Please help! Thanks! Quote Link to comment Share on other sites More sharing options...
Cody Posted December 20, 2013 Report Share Posted December 20, 2013 Copy /components/gateways/nonmerchant/offline/ and rename it to offline2. Rename /components/gateways/nonmerchant/offline2/offline.php to offline2.php. Open /components/gateways/nonmerchant/offline2/offline2.php and change: class Offline to class Offline2 Update language to your preference in /components/gateways/nonmerchant/offline2/language/en_us/offline.php. Quote Link to comment Share on other sites More sharing options...
ATS Larry Posted December 20, 2013 Author Report Share Posted December 20, 2013 Awesome, thanks Cody. Quote Link to comment Share on other sites More sharing options...
ATS Larry Posted December 20, 2013 Author Report Share Posted December 20, 2013 Hi Cody, I tried exactly what you suggested, but I'm not seeing the payment gateway module in the admin area under available or installed gateways. Am I missing something? Thanks, Larry Quote Link to comment Share on other sites More sharing options...
Tyson Posted December 20, 2013 Report Share Posted December 20, 2013 Hi Larry, If you followed Cody's steps, you should see 2 Offline Gateways when on the Available Gateways page, with the new one being installable. I just tried it out to confirm. Make sure that the directory, file, and class name are all identical, with the exception of the classname being capitalized. Quote Link to comment Share on other sites More sharing options...
ATS Larry Posted December 20, 2013 Author Report Share Posted December 20, 2013 Ok, I got it working. I was trying to name them as things like "Square", "Intuit", etc. I have to follow them as offline2, offline3, offline4, etc. Thanks, Larry Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.