Item Redemption - CMS Voucher Redeemer.
How It Works
Open up your vouchers page and choose the voucher redemption code, then choose the type, for credits choose credits and carry on as normal.
For items, enter the redemption code then choose 'items' from the drop down.
Enter the furniture CCT name in the bottom box, make sure it's correct or when redeeming items it'll throw an error message (Item not valid, please contact an admin for assistance.) at the person trying to redeem the item.
MUS info has been included, so when the item is redeemed your hand will refresh to show the item (Y)
---------------------------------------------------------
change the 'credits' field to type varchar(255) *previous one was an INT so it only allowed numeric entries, this one allows numeric and words.
if you don't know how to change it, drop your vouchers table and use this one;
Code:
CREATE TABLE `vouchers` (
`voucher` varchar(20) collate latin1_general_ci NOT NULL default '',
`type` enum('item','credits') collate latin1_general_ci NOT NULL default 'credits',
`credits` varchar(255) collate latin1_general_ci default NULL,
PRIMARY KEY (`voucher`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
Update your 'redeemvoucher.php' file with this (can be found in the main CMS directory);
[code]
<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright