jvhm Posted January 17, 2014 Posted January 17, 2014 Hello everyone. I'm currently developing a payment module for OSCommerce and I have some doubts regarding one specific subject: overrides. What I want to do is, for example, override the output of the page 'account_history_info.php', adding some specific data to it. But, as I'm developing a module (which will be distributed across multiple systems), it isn't convenient to override directly the core files, so what I'm looking for is some override system provided by OSCommerce (or some 3rd party module) that allows me to achieve that. Is it possible? I'd appreciate any ideas. Thanks in advance. Best regards.
♥ecartz Posted January 17, 2014 Posted January 17, 2014 This seems better suited for the "Add-Ons Development" forum. But to address your question: osCommerce shows very little information from the payment module on the account_history_info.php page. You don't say what information you want to display, so it's hard to say if there is an easy way to include your information in what it normally displays. If you really need an override mechanism, you could create one. I don't know of an existing module. It's possible that you could shoehorn this into something like orders_status_history, but it depends on exactly what you want to do. Always back up before making changes.
jvhm Posted January 20, 2014 Author Posted January 20, 2014 @@ecartz thanks for your response. Actually, the information I want to display in that page is not so relevant. You can imagine that I want something generic enough to give me the flexibility to insert custom contents in any page, with some override mechanism. Anyway, the content I want to insert there is some custom information about the payment method I'm developing (the actual content is really not relevant here, since they are strictly related to the payment company who is developing this module). Of course I have all this information stored in custom a database table, but the question is how I'd display that info in this page without needing to overwrite the core file. But, as you pointed out (and I figured out through my researches), there's no way to do this natively. Even though I don't take as a good programming practice overwriting core files, I ran through some other 3rd party modules developed for OSC and I could see that most of them do this. Thanks again. Best regards.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.