Grove Coupon for Virtuemart - v1.0
==================================
Published by :
eGrove Systems Corporation, 
Nashua, USA
For more information contact opensource@egrovesystems.com

Pre-requirements:
==================

A Joomla 1.5 setup with Virtuemart installed in it.

Installation steps:  
===================

1) Modify the database with the table using the following SQL.
(Note: If your Database Prefix is 'jos_', you can use the following query as it is. Else use your Database Prefix instead of 'jos_'. You can find your Database Prefix in your database or in Database Settings under Global Configuration - Server in joomla administration panel.)  

ALTER TABLE `jos_vm_coupons` ADD `desc` TEXT NOT NULL ,
ADD `start_date` VARCHAR( 100 ) NOT NULL ,
ADD `end_date` VARCHAR( 100 ) NOT NULL ,
ADD `no_of_time` INT( 100 ) NOT NULL ,
ADD `used_time` INT( 100 ) NOT NULL ,
ADD `order_amount` VARCHAR( 100 ) NOT NULL 

2) Create a new table for coupon users with the following SQL.
(Note: Same as above. Use the correct Database Prefix.)

CREATE TABLE IF NOT EXISTS `jos_vm_coupon_users` (
  `use_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(10) NOT NULL,
  `coupon_id` int(10) NOT NULL,
  `user_id` int(10) NOT NULL,
  `price` int(10) NOT NULL,
  `date` varchar(20) NOT NULL,
  PRIMARY KEY (`use_id`)
)

3) Back up the existing file in the path 'administrator\components\com_virtuemart\languages\common\english.php' and replace with the file in our package that is in the similar path.

4) Back up the existing file in the path 'administrator\components\com_virtuemart\languages\coupon\english.php' and replace with the file in our package that is in the similar path.
  
5) Back up the existing file in the path 'administrator\components\com_virtuemart\classes\ps_coupon.php' and replace with the file in our package that is in the similar path.

6) Back up the existing file in the path 'administrator\components\com_virtuemart\classes\ps_checkout.php' and replace with the file in our package that is in the similar path.

7) Back up the existing files in the following paths and replace with the files in our package which are in the similar path.
	administrator\components\com_virtuemart\html\coupon.coupon_list.php
	administrator\components\com_virtuemart\html\coupon.coupon_form.php

8) Place the file coupon.coupon_history.php in the following path as in our package.
	administrator\components\com_virtuemart\html\coupon.coupon_history.php

9) Back up the existing file in the path 'components\com_virtuemart\themes\default\templates\common\couponField.tpl.php' and replace with the file in our package that is in the similar path.

10) Back up the existing file in the path 'components\com_virtuemart\themes\default\templates\basket\basket_b2c.html' and replace with the file in our packagethat is in the similar path.


FYI:
====
You can also find the screenshots for Coupon Code creation form and Coupon History list with our package. 