Basic Coupons with Drupal

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
kpaul's picture

Ok, it's not anything great yet, but I'm using Drupal to put together an Online Coupon section for my grassroots journalism sites.

Things I still want to do:

  • Track how many times each are printed
  • Choose two (or more) coupons that you want printed on 8.5x11...
  • Attach to PayPal for automation
  • Auto expiration of coupons
  • Create an RSS feed for the coupons and use FeedAPI to slurp them onto other sites in our local network. (On the business side, this will hopefully let us get the coupons in front of more people...)

What I've Done so Far:

  • Used CCK (with image field for the logo) to create a 'coupon' type
  • Used Print to have a click here to print this button. (I'm thinking this will have to be customized, though, to get it to count the prints...Haven't looked too closely for another solution yet, though...) Messed with the CSS a little to give it a "coupon look" - both in the print.css file and the template css file.
  • Used contemplate to control output of data onto the coupon. This had some limitations, though, and I ended up having to add some code to template.php to use a custom page.coupon.tpl.php file.
  • Used Views to show the coupons (I used Taxonomy and exposed filters so there's a dropdown for coupon types. This could (read: should) be expanded to include expiration date and other filters...
  • Used Location to tie the coupon to one or more locations

Again, this isn't anything great (yet!), but I want to share the process and get feedback ideas as I grow the idea over the next couple months.

Any comments/thoughts/questions greatly appreciated.

Long live Drupal.

K. Paul Mallasch - Publisher
http://www.kpaulmedia.com

p.s. I am available for hire at $40/hour...

Comments

Using stats counter

acdc's picture

Each Coupon per separate page, which have its own stats counter. Every time Somebody want to print certain Coupon - must open certain page - stats counter will log it, and in a log you can track how many times each Coupon was printed. Stats counter code you can download for free from page 'gift voucher shop': http://www.rockrags.us/ctrjs/ctr-clbwr.js

RockRags US
www.rockrags.us

I'm really curious as yo how

djudd's picture

I'm really curious as yo how to got the print link in views. Would you mind explaining that a bit? I'm trying to accomplish something similar.

Newspapers on Drupal

Group organizers

Group categories

Topics - Newspaper on Drupal

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week