Re: Adding coupons to AWD w/ R store

Joe Van Dyk
Mon, 19 Sep 2005 17:46:04 -0000

(resubmitting this as I don''t think it got posted successfully)

On 9/18/05, Joe Van Dyk
<joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> 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
>