We need to add a feature to osCommerce batch print leveraging the kgt coupon generator.
This new feature will allow for a random 0one time use coupon code to be generated for each invoice printed. On the batch print screen there will be a new section for coupons. This section will have 6 new items:
Insert coupon on invoice - checkbox. If this is marked, a unique coupon code will be created and will be inserted on the pdf invoice (default will be no)
Percentage/Flat Rate - radio button to specify if the coupon is percentage coupon or flat rate coupon - will default to percentage
Amount - amount of coupon - this amount will default to 15
Expiration Date - with calendar date selection - this will default to 30 days from today's date
Text - Text for coupon - default text will be: Thank you for your order, as a thank you from %store_name% please enjoy %coupon_amount% (% sign if percentage - $ if flat rate) off your next order (if minimum order - add text %of $minimum_order or more%). This is changeable in this page.
Minimum Order - the minimum order for the coupon - this does not have anything to do with current orders, only reference for the Text seen above. Default is 0.
Other items needed in the coupon creation but not needed on batch print form - code - this will always be a random code 8-10 characters.
Description - Thank you code for return customers.
Max Use - Always 1
Number Available - Always 1
The code and text will be inserted on the pdf - see screen shot.
[url removed, login to view] --- the current format of the batch print screen.
[url removed, login to view] --- the batch print screen with new items.
[url removed, login to view] --- for reference the coupon insertion admin page
[url removed, login to view] --- the pdf invoice with the new addition for this project.