 JoelC707
join:2002-07-09 Tucson, AZ clubs:
| Promo Codes not working correctly
I'm setting up an AgoraCart store and want to put promo codes on some of the products. Unfortunately it's not working correctly and the sample file included with the cart hasn't worked correctly from the start. Yeah I know talk to the people who made it and I have but there hasn't been a new post there since Dec 22nd so I was hoping someone here could help me a bit faster.
Here is what happens. I've got it setup with 4 promo codes. If I put nothing in the promo code box it doesn't apply anything (like it should). If I put anything (and I mean anything) in the box, it applies the first promo code no matter what. The store is based off of Perl I believe but the options file is basic html. Can someone help me please?
Current options file as it exists now:
And the original options file. It was originally setup to do % discounts but I managed ot modify it to a $ discount like I want.
Like I said, even the original file with the % based promo codes didn't work correctly. It always applied the 50% off code no matter what you put in the code box. I have tried several different things in lines 46-50 based on my (lack of) understanding. So far nothing I've done has made it work right (though it also hasn't broken it thankfully). I changed all the eslif statements to "else", "elseif", and "if" and the only one that made a difference was having them all set to "if". In that case it always applied the last discount code not the first like it has been doing. |