Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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?

Itsme30518

Posted (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 by FWR Media
Posted
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.

Itsme30518

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...