mitchsb Posted December 6, 2012 Share Posted December 6, 2012 OK, as I'm fairly new to Oscommerce and I don't know how to install addons, I have questions. I tried to install the Discount Coupon Code addon today. I did as the instructions say, but I can't get it to work. It said to install these files: catalog/admin/discount_codes.php catalog/admin/includes/languages/english/discount_codes.php catalog/includes/modules/order_total/ot_discount.php And to modify catalog/includes/modules/order_total/ot_tax.php file to go from: function process() { global $order, $currencies, $tax_discount; // Discount Code 3.1.1 reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { if (!empty($tax_discount[$key])) $value -= $tax_discount[$key]; // Discount Code 3.1.1 if ($value > 0) { to: function process() { global $order, $currencies; reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { if ($value > 0) { I did all of this. However, I can't figure out where to go to install the module. I think I found the place, but I'm not sure. I went to "order total" and installed "MODULE_ORDER_TOTAL_DISCOUNT_TOTAL". I have no idea if this is the right one. But when I looked at it, I got the following: Warning: include(/home/content/88/9452888/html/cart2/catalog/includes/languages/english/modules/order_total/ot_discount.php) [function.include]: failed to open stream: No such file or directory in /home/content/88/9452888/html/cart2/catalog/admin/modules.php on line 129 And this: Warning: include() [function.include]: Failed opening '/home/content/88/9452888/html/cart2/catalog/includes/languages/english/modules/order_total/ot_discount.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/88/9452888/html/cart2/catalog/admin/modules.php on line 129 Please help. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 6, 2012 Share Posted December 6, 2012 The errors tells that you have eighter not added the language files for the add-on or you have added them in the wrong place. Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
mitchsb Posted December 6, 2012 Author Share Posted December 6, 2012 I've uploaded the same file, discount_codes.php, to the same place, catalog/admin/includes/languages/english/, 4 times now, and I still get the same error. Quote Link to comment Share on other sites More sharing options...
mitchsb Posted December 7, 2012 Author Share Posted December 7, 2012 I have yet to get an answer to this question. Please help somebody. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 7, 2012 Share Posted December 7, 2012 This is the one which is missing catalog/includes/languages/english/modules/order_total/ot_discount.php Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
mitchsb Posted December 7, 2012 Author Share Posted December 7, 2012 OK, I put that in and now I get this: Fatal error: include() [<a href='function.include'>function.include</a>]: Cannot redeclare class ot_discount in /home/content/88/9452888/html/cart2/catalog/admin/modules.php on line 130 Quote Link to comment Share on other sites More sharing options...
mitchsb Posted December 10, 2012 Author Share Posted December 10, 2012 Is there an answer to the last error I got? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.