New Zenner
- Join Date:
- Nov 2011
- Posts:
- 7
- Plugin Contributions:
- 0
Need two types of coupons - is it supported ?
I'm not a php expert (know perl well) and am familiar with MYSQL.
I see the database tables:
zen_coupons
zen_coupons_description
zen_coupon_email_track
zen_coupon_gv_customer
zen_coupon_gv_queue
zen_coupon_redeem_track
zen_coupon_restrict
I suspect there may be a way to do what I want but am not sure how (without having a code patch written).
I want two types of coupons (purchased and give aways).
I want them to behave differently.
Currently it allows me to redeem two give aways to the same user account.
Here is the way I want it to work ...
purchased gift certificates - any number can be redeemed to any account or the same account.
Give Away gift certificates - only one can be used per order (or in this case redeemed until it is applied to an order) at which point a second one can be redeemed for their next order.
My goal is to give away small gift certificates to generate new customers and basically give them a discount on their first order.
I don't want someone collecting many of these and getting their order for free.
I have already created a perl script which creates nice looking gift certificates (which can be printed) and can easily have it put information in the zen cart database (based on creating a free one that was sent by email from the zen cart admin area).
I see the various restrictions in some of the above tables but am not sure how they function in the zen cart code.
I would rather not have to have modifications to the php code which will made upgrading more difficult.
Is there a way of doing what I want without creating a modification of the zen cart code so that only one give-away coupon can be active in a single user account at a time ?