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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...