devink Posted March 4, 2003 Share Posted March 4, 2003 Hi, I'm hoping someone has seen and resolved this one, my PHP knowledge is not good. Graduated prices is not working, the discount is not being applied. Possibly related, I think that in the admin (categories.php), the value is being calculated as an integer. So, a value of ?0.25 actually appears as 0 if I return to the product to edit it. Has anyone seen this, or can anyone help me to help myself with what I think is a problem in the way the value is stored as an integer, instead of with decimal points? I think this is the code that is retrieving the prices into an array... // Nettopreisberechnung { $insert_sql_data = array('products_id' => $products_id, 'quantity' => tep_db_prepare_input($HTTP_POST_VARS['quantity'.$s]), 'unitprice' => tep_db_prepare_input($HTTP_POST_VARS['unitprice'.$s])); tep_db_perform(TABLE_PRICES, $insert_sql_data); } In the database, the decimals are stored correctly, and they display correctly in the catalog. Quote Many Thanks, Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.