Ian Posted May 4, 2003 Share Posted May 4, 2003 Now combined into one contribution. Download at http://www.oscommerce.com/community/contributions,282 The changes to the previous versions are as follows. Core Credit Class Code. The whole database structure has been changed. This was needed to help with the single redeem box, and to provide better reporting possibilities. Changes to the order_total ouput to allow for a single redeem box. Gift Voucher System Thanks to gdfwilliams, I've done away with separate box to show the amount in a customers Gift Voucher Account. This is now shown in the shopping cart box. The code now uses the get_content_type function to skip shipping selection if the Gift Voucher is the only item in the cart. The decision to queue purchases of Gift Vouchers is now set in admin rather than having to edit a DEFINE in add_application_top.php A new tax option has been added to treat Gift Vouchers like credit notes. If you don't know what that means it probably doesn't concern you. Redemption by email is now much simpler. There is no need to login, as the redeemed value is stored in a session variable until the user checksout. It is now possible to set a variable (in includes/add_application_top.php) to send a Gift Voucher to new customers when they create an account. define('NEW_SIGNUP_GIFT_VOUCHER_AMOUNT', '10'); It is also now possible to set the length of the redeem codes generated by the system. define('SECURITY_CODE_LENGTH', '10'); again this is located in catalog/includes/add_application_top.php If Voucher purchases are queued then the customer is informed by email when the amount is released by admin. Discount Coupon System Lots of tidying up in the admin area, including the addittion of a proper voucher usage report. A new Free Shipping Voucher (again thanks to gdfwilliams for the idea). As for the Gift Voucher a new tax calculation treating the Coupon as a Credit Note. The whole tax calculation logic has in fact been rewritten. Again like the GV system, you can now set a Disount Coupon to be sent to a new customer on signup. define('NEW_SIGNUP_DISCOUNT_COUPON', '3'); the value (e.g. '3') is the coupon id as created in admin. The discount coupon is now shown in the shopping cart box when redeemed, this also has a 'more info' link that gives full details of what the Coupon is worth including any category/product restrictions. I'm currently working on a much more intuitive way of defining category/product restiction for the Discount Coupon system. I will release this as an upgrade file asap. Quote Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.