Tom73 Posted August 2, 2003 Posted August 2, 2003 Hi, I just installed Credit Class & Gift Voucher on 2.2MS1 and when I checkout I get the following error: Cannot redeclare class ot_fixed_payment_chg in ....catalogincludesmodulesorder_totalot_fixed_payment_chg.php on line 13 When I turn off the contrib (Payment Type Charge) the Credit Class & Gift Voucher works correct. What am I doing wrong? Regards, Tom
Daemonj Posted August 2, 2003 Posted August 2, 2003 If there is a ot_payment_chg.php file in the catalogincludesmodulesorder_total folder, remove it. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Tom73 Posted August 3, 2003 Author Posted August 3, 2003 I only have the ot_fixed_payment_chg.php in that dir but if I remove it then off course the contrib. payment charge won't work anymore.
Daemonj Posted August 3, 2003 Posted August 3, 2003 You have to have two files that are attempting to instantiate the same class. This is usually caused by making a copy of an original file before editing or something like that. Since the file that you have is named fixed I figured that you had an original file still out there. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Tom73 Posted August 3, 2003 Author Posted August 3, 2003 I just went back to a backup version and installed the Credit Class / Gift voucher contrib. and the 'Fixed Payment Charge'contrib. all over again (pfew..) but now both contributions are working together. I must have made a mistake in my first install atempt. The only problem I have right now is that the tax amount of the 'Payment type surcharge' is not added to the tax line, but it is in a separate line (2nd tax line?); see http://www.oscommerce.com/forums/viewtopic.php?t=53387 but I don't know if this is related to the problem I have. Thanks for your help, Tom
Recommended Posts
Archived
This topic is now archived and is closed to further replies.