ATS Larry Posted December 20, 2013 Report 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!
Cody Posted December 20, 2013 Report 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.
ATS Larry Posted December 20, 2013 Author Report 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
Tyson Posted December 20, 2013 Report 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.
ATS Larry Posted December 20, 2013 Author Report 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now