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