how can i save fractional number in quantity for ex: 510.5 cause i sell products according to weight,
please help.
Modifying the installation sql is not what I meant but you do not need a special editor. By the way, which version of opencart are you installing and is it on a hosted server or a local machine for testing?
You can modify the structure of the database after it is installed using phpmyadmin.
You can modify the structure of the database after it is installed using phpmyadmin.
Last edited by bruce on Mon Sep 15, 2008 9:17 am, edited 1 time in total.
i m installing 7.8 version on hosted server, it almost worked the way you said, but still a litlle bit problem: when i have 500.96 in stock and i order 50.9 the left value in stock is 450.96 .96 remains always, can you help me out here ?
i modified \library\cart\order.php
quantity = (quantity - " . (float)$product['quantity'] . ")
this way
instead of
quantity = (quantity - " . (int)$product['quantity'] . ")
it works so far, thanks bruce, probably i will need your help sometime again cause i m going to stick with this software, thanks.
quantity = (quantity - " . (float)$product['quantity'] . ")
this way
instead of
quantity = (quantity - " . (int)$product['quantity'] . ")
it works so far, thanks bruce, probably i will need your help sometime again cause i m going to stick with this software, thanks.
Who is online
Users browsing this forum: No registered users and 1 guest