Found a potential bug with the coupon administrator when using a percentage discount.
I just downloaded Zen Cart and began playing with it before realizing it was not optimized for the newer versions of PHP/MySQL. Turns out that when I tried to create a coupon using a percentage, I got the following error:
1366 Incorrect decimal value: '5.0000%' for column 'coupon_amount' at row 1
Appears that the DECIMAL datatype in MySQL changed the way it is stored. Details can be found here:
http://dev.mysql.com/doc/refman/5.0/...l-changes.html
Long story short - DECIMAL is no longer stored as a string, but tables created in older versions of MySQL will keep the old behavior. I guess if someone upgrades to the latest version of MySQL, they won't notice this problem.
Guess I have three options:
Downgrade MySQL and probably PHP (most logical)
Rewrite the code (me?..yea right)
Change the coupon_amount datatype(tried, didn't work, not best solution anyway)
Currently using:
Apache 2.0.55
PHP 5.1.6
MySQL 5.0.26
Any suggestions? Great application by the way. Y'all done good.
Bookmarks