itsme30518 Posted April 14, 2009 Posted April 14, 2009 Hi, I am new to this. I am not a programmer professionally but I am able to complete the easy Contributions. I believe I can tackle this one, but I get a little queasy messing with the database. My database is hosted and they do not support any changes to the table. I would like to to do the following funtion per your instructions: OPEN admin/includes/database_tables.php. ADD: //kgt - discount coupons define('TABLE_DISCOUNT_COUPONS', 'discount_coupons'); define('TABLE_DISCOUNT_COUPONS_TO_ORDERS', 'discount_coupons_to_orders'); define('TABLE_DISCOUNT_COUPONS_TO_CATEGORIES', 'discount_coupons_to_categories'); define('TABLE_DISCOUNT_COUPONS_TO_PRODUCTS', 'discount_coupons_to_products'); define('TABLE_DISCOUNT_COUPONS_TO_MANUFACTURERS', 'discount_coupons_to_manufacturers'); define('TABLE_DISCOUNT_COUPONS_TO_CUSTOMERS', 'discount_coupons_to_customers'); define('TABLE_DISCOUNT_COUPONS_TO_ZONES', 'discount_coupons_to_zones'); //end kgt - discount coupons QUESTION: On what line do I add this to the admin/includes/database_tables.php file? Quote Itsme30518
♥FWR Media Posted April 14, 2009 Posted April 14, 2009 (edited) Hi, I am new to this. I am not a programmer professionally but I am able to complete the easy Contributions. I believe I can tackle this one, but I get a little queasy messing with the database. My database is hosted and they do not support any changes to the table. I would like to to do the following funtion per your instructions: OPEN admin/includes/database_tables.php. ADD: //kgt - discount coupons define('TABLE_DISCOUNT_COUPONS', 'discount_coupons'); define('TABLE_DISCOUNT_COUPONS_TO_ORDERS', 'discount_coupons_to_orders'); define('TABLE_DISCOUNT_COUPONS_TO_CATEGORIES', 'discount_coupons_to_categories'); define('TABLE_DISCOUNT_COUPONS_TO_PRODUCTS', 'discount_coupons_to_products'); define('TABLE_DISCOUNT_COUPONS_TO_MANUFACTURERS', 'discount_coupons_to_manufacturers'); define('TABLE_DISCOUNT_COUPONS_TO_CUSTOMERS', 'discount_coupons_to_customers'); define('TABLE_DISCOUNT_COUPONS_TO_ZONES', 'discount_coupons_to_zones'); //end kgt - discount coupons QUESTION: On what line do I add this to the admin/includes/database_tables.php file? It doesn't matter .. as long as those defines are not repeated elsewhere in the files there will be no problem. Ideally you would place the defines alphabetically as is the case with the original core defines. However "My database is hosted and they do not support any changes to the table." worries me .. if you are not able to add or change tables then you cannot install this nor virtually any other contribution. Edited April 14, 2009 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
itsme30518 Posted April 15, 2009 Author Posted April 15, 2009 It doesn't matter .. as long as those defines are not repeated elsewhere in the files there will be no problem. Ideally you would place the defines alphabetically as is the case with the original core defines. However "My database is hosted and they do not support any changes to the table." worries me .. if you are not able to add or change tables then you cannot install this nor virtually any other contribution. Awesome. Thanks so much! It works. Quote Itsme30518
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.
Note: Your post will require moderator approval before it will be visible.