The Credit Class system adds some functions to the Order Total class to make it easier to write complex Discount/Credit systems. As always simple discount systems can be written as ordinary order total modules. What is the difference. Complex discount/credit systems require some form of user interaction during checkout. This may be a redeem box for entering coupon codes or a select box for deciding whether to use a discount or not. At the moment their are two modules written which take advantage of the Credit Class code. The gift coupon system and the discount vouchers system. More details of these can be found later in this document.
For versions of this software as installed in Chain Reaction Edition Loaded 6
Credit Class/gift coupons/discount vouchers has been pre-installed in Chain Reaction Loaded 6.2, this part of the instructions have been removed they can be seen in the original contribution.
Upgrading
Periodic patches are released to the cart these may contain fixes and upgrades to the Credit class and GV system
What are discount voucher, gift coupons.
There are several type of coupons and discounts that you can use. Sometimes they are very confusing.
Gift coupon: This is a product you sale in your catalog they can be purchased by your customer. Once the payment and order have been approved A Coupon balance can be started. They can send part or all of the balance to one person or to several. They can also use the credit to make other purchases for them selves in the store.
Coupons: These are coupon sent by a customer to another person.
Welcome discount voucher: when a person creates an account at your store you can automatically send them a discount voucher. The welcome discount coupon can be configured for use with only certain product, categories etc.
Discount voucher: you can create a coupon to send to some of your valued customers. These can be only redeemed in your store. They can be limited in several ways as to what they can be redeemed for.
Creating coupons and vouchers
Creating a Gift coupon
Creating a gift coupon for a customer to buy is the same as creating a new product with the exception that the gift coupons model number must start with the word GIFT in upper case. It can be GIFT_25 or GIFT25 or whatever you would like to use, as the suffix to the word. But MUST START with the word GIFT You can create gift coupons in any denomination. Gift certificate images have been provide in the catalog\images directory in denominations of 25$, 50$ and 100$ values But, feel free to make your own gift product images.
Creating Discount and Welcome vouchers
Both the Welcome and Discount Vouchers are created in the same edit screen. The main difference is how the customer is sent the voucher. Creating a discount voucher is done through the admin->Vouchers/Coupons->Coupon Admin This selection allows you to create/insert, edit, email and delete a coupon.
Coupons can be created in fixed or percentage amounts, for a single product, multiple products, a single category, multiple categories or the complete inventory. A note on product discounts: product discounts (which includes categories) are just that product discounts. Though you can set the modules->order total -> discount voucher to do shipping, tax, etc... this type of coupon will not figure the percentages of shipping tax. Though it will discount shipping it isn't a true discount in that it doesn't try to determine the products value in shipping etc.
Goto vouchers/coupon > coupon admin
Sending a Discount voucher
You can also create gift coupons by sending them to your customers via the admin->Vouchers/Coupons->Mail gift coupon selection within the admin. To use this to send a voucher to a customer use the drop down customer list. To send to a single customer or future customer you can put their email in the Email To: text box.
Do not use both the customer drop down list and the Email To: text box or the customer will get 2 gift coupons. To determine what values the gift coupon is used on please see the doc on modules->order total->gift coupons.
Gift coupons are a virtual product. They do not require shipping charges to be added to them. To avoid the shipping charge on gift coupons, set the weight of the gift coupon to 0 when creating the product and enable downloads by setting true the value admin->configuration->downloads->enable download.
Creating discount vouchers
Creating a discount voucher is done through the admin->Vouchers/Coupons->Coupon Admin This selection allows you to create/insert, edit, email and delete a coupon. Coupons can be created in fixed or percentage amounts, for a single product, multiple products, a single category, multiple categories or the complete inventory. A note on product discounts: product discounts (which includes categories) are just that product discounts. Though you can set the modules->order total -> discount voucher to do shipping, tax, etc... this type of coupon will not figure the percentages of shipping tax. Though it will discount shipping it isn't a true discount in that it doesn't try to determine the products value in shipping etc.
Enabling gift coupons and discount vouchers
If for some reason that these are not installed you will need to enable the modules:
To enable the gift coupon, go to your admin->modules->order_total->gift coupons and choose to install it. On a default system there should be a button with a green cross and the words install. Click that button.
To enable the discount voucher, go to your admin->modules->order_total->discount vouchers and choose to install it. On a default system there should be a button with a green cross and the words install. Click that button.
The default settings :
The default value of the new customer gift coupon and discount voucher are set so that no value or notification is sent in the welcome email. The values in the admin->configuration->Welcome gift coupon Amount tells the system how much of a gift coupon you would like to send your customer that has just created an account. If you do not want to use this option set the text box to 0. Do not leave blank. To change the discount voucher that you send to your customer when creating a new account edit the admin->configuration->Welcome discount voucher Code and place the coupon code that you would like to use in this text box. Note: Previous versions of the discount voucher used the coupon_id value from the database. This version uses the coupon code that is made when you create the discount voucher.
Setting up different types of coupons and vouchers