This is a discussion on decimal values within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I want to sell frames. The price must be, for example "2$ per meter". I have to be able to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I want to sell frames. The price must be, for example "2$ per meter". I have to be able to send "1,3 meters". If i set quantity, in the basket to "1.3" it goes good... but if i put "0.3" it removes the product from the basket! I've investigated a little bit and found the line: while (list($key,) = each($this->contents)) { if ($this->contents[$key]['qty'] < 1) { unset($this->contents[$key]); // remove from database if (tep_session_is_registered('customer_id')) { tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($key) . "'"); etc. If i change the "< 1" to "<=0" it will work? Also, in the order report, it will not appear "1.3" but "1" (although the calculations are done with 1.3) |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting products_stock, options, and values in mysql | Dubious | osCMax v2 Customization/Mods | 1 | 08-24-2006 06:51 PM |
| How to Add New Order Status Values | MikeS | osCMax v1.7 Discussion | 2 | 05-18-2005 01:22 AM |
| Option values scrol | KCount | osCommerce 2.2 Modification Help | 1 | 09-14-2004 12:02 PM |
| Options/Values | eviternity | osCMax v1.7 Discussion | 5 | 08-02-2004 06:55 AM |
| Can't access login using default values | acrylictribesmen | osCMax v1.7 Discussion | 0 | 07-04-2004 01:31 AM |