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)