Adding coupons to AWD w/ R store

Joe Van Dyk
Sun, 18 Sep 2005 16:40:29 -0000

Hi,

What would be the most straightforward way of adding coupons (say, 10%
off a product or off a certain category of products, or free shipping)
to the store in the Agile Web Dev w/ Rails book?

I''m thinking you''d want a coupon model/table that looked
something like

coupons
========id
code
description
free_shipping (bool)
percent_off
products or categories?  not sure here.

Thoughts?  Anyone implement coupons in Rails yet?

Joe