I'm trying to set Discount Coupon Codes up and it seems to not be working. The 'admin' side seems to be working correctly, but when I enter a code during a checkout, it jumps to the next screen without doing anything with the code.
I'm not sure what version of osCommerce I'm on, but it is not the most current. The mod is being installed from the most recent contribution, though. No issues installing, and the admin side seems to work fine.
To replicate the issue, I get the discount box on checkout_payment.php and enter DISCOUNT which should be an easy match for the defined, always-active test code of DISCOUNT I added through the admin page.
Upon clicking 'Continue' the normal checkout_confirmation.php appears with no discount show.
I did some additional troubleshooting. I added the statement 'echo $coupon;' to the kgt block so as to determine if the code is being passed correctly. It is, I believe, as the code is now on top of the page display.
I tried adding another echo statement for debugging after the ' if( tep_not_null( $coupon ) && is_object( $order->coupon ) ) { //if they have entered something in the coupon field
' but this does not display (even in the page source) so I'm thinking one of the two statements in the if statement are false. I checked these, and it looks like it is the 'is_object($order->Coupon)' that is coming up null.
Any suggestions?