Re: Combining two modules into one SUPER module!
What are the files that the two mods share? As I'm sure you know, those are the ones that will have to be merged. The first step would be to document exactly how each mod's version of those files differs from the stock version. Compare the difference areas and see how much overlap there is. Where they modify different parts of the stock files, you may be able to just use the respective mod version of the lines. If they both modify the same statement in different ways, you will need experienced PHP coders to advise on combining the functionality.
Re: Combining two modules into one SUPER module!
There are no files to be merged - the two mods use different files.
The invoice module just does a small check in includes/modules/payment/invoice.php to see if the person is in a group which starts with the string "invoice_".
This check is done here:
Code:
$invoice_prefix = "invoice";
$check_prefix = substr($check->fields['group_name'], 0, strlen($invoice_prefix));
if (strcasecmp($check_prefix, $invoice_prefix) == 0) {
$check_flag_group = true;
}
If both of your groups A-D have the same prices (whether or not they are invoice eligible), you should use another mechanism to identify invoice eligible customers. You'll have to hire someone to add an "invoice eligible" flag to your customers table and admin->customers->customers, but it will save you time because you'll only have to enter 4 prices instead of 8.