Forums / Developer / How to override a module function

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to override a module function

Author Message

Jade Tremblay

Thursday 24 November 2005 7:16:57 am

Hello,

I'm looking for a way to extend an existing Exponential module. (shop module) I would like to rewrite a single function (addtobasket) without modifing the original module. Is it possible to do that with an extension??

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Alexandre Abric

Thursday 24 November 2005 7:19:00 am

Hi,

I don't think this is possible. You would need to copy the entire module as an extension and then modify the function.

Jade Tremblay

Tuesday 29 November 2005 10:50:12 am

Is there anything that could be done with module's hook. What is the exact purpose of hooks?

I don't like the idea of copying the whole module's code. :( It's not upgrade wise!

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!