Jump to content

Module development approach


Enrique Gómez
 Share

Recommended Posts

Hi everybody,

 

I'm currently developing a module modification of the free http://www.prestashop.com/forums/topic/26157-module-updated-related-products-v01/ so i would upload as a contribution when i finish. I'm adding order to the related tags

 

I have to overwrite Products and Tags. Products to add a new field, and Tags to overwrite addTags and getProductTags to take into account the order insertion.

 

I know it's possible to install those overwritten Clases within the module installation process, but I know also that this approach has problems when those files have been already overwritten.

 

I've seen some other modules make modifications into the source code directly (the tpl files) searching for some patterns and writting directly using I/O php functions. At first glance it seems awkward to me because I've been programming in Java language and it's not as dynamic as php.

 

Which approach is the least bad?

 

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More