in
Project codesThis CodeLet will pick an inactive coupon created with UC coupons module randomly and generate new coupon code. This coupon can then be send via email using simplenews module. This CodeLet uses three tokens for coupons:
Coupon code: [coupon-code]
Coupon name: [coupon-name]
Coupon value: [coupon-value]
These tokens can also be placed in newsletter subject field.
When a new code is generated and the coupon is get activated, coupon's 'valid from' and 'valid until' values changes to current time and one week later respectively. When the coupon expires, on next cron runs, it will be inactive and be available to be picked again randomly.
The advantage of this CodeLet is, you don't have to add coupons manually each time few of the used up or expired. They get 'recycled'
Recent comments
20 weeks 6 days ago
39 weeks 3 days ago
41 weeks 1 day ago
50 weeks 4 days ago
1 year 2 weeks ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 4 weeks ago