This issue is occurring in BOTH my live store and the development shop. Everytime I create a new coupon the "coupon_active" column is set to NULL. I have to go into the DB and manually set the "coupon_active" column to "Y". I realize this is the default value for this column, but I expect that when I create a new coupon that this value will be set to "Y".
Any ideas???Code:CREATE TABLE `zen_coupons` ( `coupon_id` int(11) NOT NULL AUTO_INCREMENT, `coupon_type` char(1) DEFAULT NULL, `coupon_code` varchar(32) DEFAULT NULL, `coupon_amount` decimal(15,4) NOT NULL DEFAULT '0.0000', `coupon_minimum_order` decimal(15,4) NOT NULL DEFAULT '0.0000', `coupon_start_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00', `coupon_expire_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00', `uses_per_coupon` int(5) NOT NULL DEFAULT '1', `uses_per_user` int(5) NOT NULL DEFAULT '0', `restrict_to_products` varchar(255) DEFAULT NULL, `restrict_to_categories` varchar(255) DEFAULT NULL, `restrict_to_customers` text, `coupon_active` char(1) DEFAULT NULL, `date_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00', `date_modified` datetime NOT NULL DEFAULT '0001-01-01 00:00:00', `coupon_zone_restriction` int(11) NOT NULL DEFAULT '0', `manufacturer_ids` varchar(100) DEFAULT NULL, `sales_eligible` tinyint(1) DEFAULT '0', PRIMARY KEY (`coupon_id`), KEY `idx_active_type_zen` (`coupon_active`,`coupon_type`), KEY `idx_coupon_code_zen` (`coupon_code`), KEY `idx_coupon_type_zen` (`coupon_type`) ) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8


Reply With Quote

