Experimental Reward Points Module
Hi,
This is not a complete module but try it and if you got anything to say or you would like to have in it just mention it.
YOU'll have to put the ot_reward_points.php file in the includes->modules->order_total folder
and install it through modules folder.
and create two tables
Code:
CREATE TABLE `cs_customers_points` (
`customers_points_id` int(11) NOT NULL auto_increment,
`orders_products_id` int(11) NOT NULL,
`points` int(11) NOT NULL,
`rate` double NOT NULL,
PRIMARY KEY (`customers_points_id`)
) TYPE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `cs_products_points`
--
CREATE TABLE `cs_products_points` (
`cs_products_points_id` int(11) NOT NULL auto_increment,
`products_id` int(11) NOT NULL,
`products_points` int(11) NOT NULL,
PRIMARY KEY (`cs_products_points_id`),
UNIQUE KEY `products_id` (`products_id`)
) TYPE=MyISAM ;
and copy the two other files into the admin folder
or you can just copy them as they are
i haven't created the files for the menus(boxes) yet
Bookmarks