
Originally Posted by
Florin
I also get this bug ...

I think I solve your problem:
LA mine imi dadea eroare la linia 281, dar s-ar putea sa am eu ceva in plus in fisierul ala, asa ca incearca urmatoarele:
In admin/edit_orders.php I have changed this lines:
PHP Code:
if ($products_details["qty"] != $order['products_quantity']){
$differenza_quantita = ($products_details["qty"] - $order['products_quantity']);
$db -> Execute("update " . TABLE_PRODUCTS . " set products_quantity = products_quantity - " . $differenza_quantita . ", products_ordered = products_ordered + " . $differenza_quantita . " where products_id = '" . (int)$order['products_id'] . "'");
}
with this:
PHP Code:
if ($products_details->fields["qty"] != $order->fields['products_quantity']){
$differenza_quantita = ($products_details->fields["qty"] - $order->fields['products_quantity']);
$db -> Execute("update " . TABLE_PRODUCTS . " set products_quantity = products_quantity - " . $differenza_quantita . ", products_ordered = products_ordered + " . $differenza_quantita . " where products_id = '" . (int)$order->fields['products_id'] . "'");
}
Still have that problem with emails, which ain't lookin' as I want...
Bookmarks