Jump to content

Recommended Posts

Posted

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!

Posted

  1. 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.

Posted

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

Posted

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.

Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...