I got one problem fixed that was driving me crazy and now I am on a mission to try and figure out a logical issue with the ot_coupon.php file.
If I was really smart I could figure it out but here is what is happening....
If I add a product or category to the coupon Valid Products: or Valid Categories: section a discount is still applied to those products but at the original price versus the discounted price.
While this seems like an easy fix my brain just can figure it out....
I see the check section:
Code:
if ($get_result['restrict_to_products'] || $get_result['restrict_to_categories']) {
Then there is other logic what seems like it gets the price of the product from the database and adds it to a total for the discount to be applied to.
Here is where my logic fails me versus how this module seems to be built: I would think this is the logic this file should use....
Keep the total cart value. Then if you find a product that IS NOT an included product or category then reduce the cart value by the product value.
Then once all products in the cart are checked apply the coupon discount.
I am looking all around for where in that file that the logic might be changed (like a == to a != or a + to a -). I know the logic is in there because when it finds a product that isn't valid to use the coupon code on it adds to non-discounted price.
Any help?
Mike