price paid not being put into database?
a user of mine sent me this message this morning:
I will have to do some testing with 2.91
3.0 is about ready to be released but looking at 2.91 I dont see anything out of place
try commenting out this line in reviews.php and see if it gets written
if ( !is_numeric($price) ) $price = 0;
if 3.0 is about ready, ill just wait for that. its no big deal.
Your welcome to grab a copy and try it out by emailing me. It has not been released yet but I think you'll be surprised ;)
You would just upload all the files except config-inc.php and run the upgrade script
Perhpas your user was entering a price in the format "$46.23"? If the data isn't numeric it'll get ignored by reviewpost and treated and junk and you'll experience the issue you found.
yeah well for 2.91 it looks okay but that was my suggestion
46.23 is a numeric variable so it would pass that query
if ( is_numeric($var) ) $var = "yes";
if you run that test script you will see 46.23 is a numeric value. $ is stripped from price a few lines above.
|All times are GMT -5. The time now is 03:30 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0