Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Customizable Pay Later Options

Customizable Pay Later Options 14 years 8 months ago #6666

  • sharonkelley
  • sharonkelley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

A feature that would be really useful to us, and I think many other DTRegister users, would be the ability to customize the Pay Later options with more options. Sure, I can go edit the language files and display those three items the way I like, but the limit isn't very helpful.

We process on site course sign-ups on our site using DTRegister and have many of the facilities we teach at pay us directly. During the registration process, the very last step where the user selects payment options, they have the option to select the radio which we renamed to "Organization Pays", and then in the dropdown, we list the organizations. We had exceeded the limit of three options, so what I had to do was to go and hack in 17 more options.

It's a good thing the DT code is so pretty, otherwise this would've been a lot harder to do. Anyway, the hack wasn't that easy and required me to edit about 10 different files of both the front-end and administration side. So, now every time you guys release a new version, I'll be forced to add this to my list of file hacks before I can apply the update to the live site.

So here's my wish:

At some point in the future it would be lovely to see the option to add/remove custom pay later options directly from the administrator side of DT Register's Configuration settings under payment options. Is there anyone else out there that would like to see this feature as well?

Please Log in or Create an account to join the conversation.

Customizable Pay Later Options 14 years 8 months ago #6700

  • sharonkelley
  • sharonkelley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I just wanted to post an update here on exactly how I hacked in my own pay later options.

The files that require editing are in two locations. There are four on the front-end side and three in the administrator side:

Front-End:

www/language/en-GB/en-GB.com_dtregister.ini
www/components/com_dtregister/dtregister.php
www/components/com_dtregister/common.php
www/components/com_dtregister/class.dtregister.php

Back-End:

www/administrator/language/en-GB/en-GB.com_dtregister.ini
www/administrator/components/com_dtregister/admin.dtregister.html.php
www/administrator/components/com_dtregister/admin.dtregister.php

Then when you open the files in something such as Programmer's Notepad, you can use the phrase "at_door" for your search, to find each section of code where this hack applies. "at_door" is one of the three labels assigned to the pay_later references and is a constant throughout all the files. You won't have any trouble finding anything using the "at_door" phrase and when you do "find next" you will be sure to find everything using this.

Each section is a little different to edit and you have to make sure you nail down each area carefully. I was able to add an additional 17 entries and it works flawlessly. However, I dread having to do this each time a new update is released.

So, if you're just looking to add custom pay later options, these files are where you'll find all the locations that reference this area. If you do this, be careful to make a back-up of your original files, of course.

As I said in my previous post, it's a good thing the code is very neat and organized and no cobbled techniques were used by the author, otherwise, this process would be a lot more difficult.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.240 seconds