Closed (works as designed)
Project:
Viral Discount
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 09:32 UTC
Updated:
9 Jun 2011 at 19:09 UTC
The module is supposed to save a new offer and display an offer page after checkout, but on line 115 the code only runs if the order status changes from in_checkout to _postcheckout:
if ($old_state == 'in_checkout' && $new_state == 'post_checkout') {
After some debugging, I've found that the only status I get when the order gets updated is 'completed', so I changed the line:
if ($new_state == 'completed') {
Seems to work okay now. And customers can visit the uc_viral/offer page to see the offer again.
Comments
Comment #1
mattcasey commentedThis may only be a special case issue. I just realized this only works for my use case - I want to discount a recurring fee that is charged after the first completed payment, and I did not test to see if it works as designed if you have "Authentication required" set.