I'm new and I'm trying to install the discount module to my oscommerce site. I have the latest version.
I'm trying to follow the instructions in the readme file and I ran the SQL query and it was fine,
CREATE TABLE `customers_to_discount_codes` (
`customers_id` int(11) NOT NULL default '0',
`discount_codes_id` int(11) NOT NULL default '0',
KEY `customers_id` (`customers_id`),
KEY `discount_codes_id` (`discount_codes_id`)
);
Then I wasn't sure if the second part was also supposed to go in that same window, but when I pasted this- I get the following error
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE `discount_codes` ( `discount_codes_id` int(11) NOT NULL auto_inc' at line 7
Can anyone help? Have I put it in the wrong spot? I'm so new to this and only just learning. Thanks
CREATE TABLE `discount_codes` (
`discount_codes_id` int(11) NOT NULL auto_increment,
`products_id` text,
`categories_id` text,
`manufacturers_id` text,
`excluded_products_id` text,
`customers_id` text,
`orders_total` tinyint(1) NOT NULL default '0',
`order_info` tinyint(1) NOT NULL default '0',
`discount_codes` varchar(8) NOT NULL default '',
`discount_values` varchar(8) NOT NULL default '',
`minimum_order_amount` decimal(15,4) NOT NULL default '0.0000',
`expires_date` date NOT NULL default '0000-00-00',
`number_of_orders` int(4) NOT NULL default '0',
`number_of_use` int(4) NOT NULL default '0',
`number_of_products` int(4) NOT NULL default '0',
`status` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`discount_codes_id`)
);









