Author Topic: Module Installer - New Discount Engine  (Read 5529 times)

megaplow

  • Beginner
  • *
  • Posts: 8
Module Installer - New Discount Engine
« on: March 03, 2006, 19:10:23 pm »
Hello,
I have written a new discount engine. I would like to make it into a module and "give back" to the community. The module requires some major changes to the ps_product and ps_checkout files. It also effects the basket files. How do I go about writing an installer to update these files? Any help would be much appriciated.

Joe
415.385.1218
joe.andolina@adobe.com

eaxs

  • Guest
Re: Module Installer - New Discount Engine
« Reply #1 on: March 03, 2006, 20:25:41 pm »
I hope I understand you the right way:
You want a tool which automatically inserts your snippets in right place of the right file?
- This is possible, but not effective because:
You must know the correct line,where the code has be inserted within the affected file - Thats not a problem.
But what if the file has already been modified? The correct line for the code might have been changed then. So the code would be at a false position.
So why donĀ“t you provide the complete files?  ::)

megaplow

  • Beginner
  • *
  • Posts: 8
Re: Module Installer - New Discount Engine
« Reply #2 on: March 04, 2006, 00:06:49 am »
I could provide the complete files, but it seems that "if they were previously modified" they would become unmodified.

Y3PP3R

  • Beginner
  • *
  • Posts: 34
Re: Module Installer - New Discount Engine
« Reply #3 on: March 05, 2006, 00:02:45 am »
that's why it's a hack and not a module