How to do coupons for 100% off

7 views
Skip to first unread message

Eamon Ford

unread,
Sep 11, 2009, 5:06:48 PM9/11/09
to potion...@googlegroups.com
Hello,
I would like to create a coupon for the full price of the product (in
other words, a "100% off" coupon). However, it appears Potion Store
doesn't like processing orders with a total charge of $0... When I
fill out the order form using a "100% off" coupon that I created and
then click submit, it just gives me "Order Error" and says "Amount to
be charged is zero."
It's probably a simple task to modify something in order_controller.rb
to make it accept orders with no charge, but I don't really know where
to start. Could anyone point me in the right direction?

Thanks in advance!
Eamon Ford

Andy Kim

unread,
Sep 11, 2009, 5:29:13 PM9/11/09
to potion...@googlegroups.com
Check out Brian Cooke's fork here:

http://github.com/bricooke/potionstore/tree/master

The specific commit where he makes changes to allow free orders is here:

http://github.com/bricooke/potionstore/commit/faae2cd363dba0630d708c6491fba4480a52ea0d

- Andy Kim

Eamon Ford

unread,
Sep 12, 2009, 1:31:09 PM9/12/09
to potion...@googlegroups.com
Just what I was looking for, thanks Andy!
Reply all
Reply to author
Forward
0 new messages