I try the demo, it look great, but when i update the item on the cart to -1 the total price also minus. The item can't negative , it should always positive.
I just fixed it!
In the include/cart.php
change:
to:
I will include this code in the next release.
In the include/cart.php
change:
Code: Select all
function update($products) {
foreach ($products as $key => $value) {
$this->products[$key] = $value;
}
$_SESSION['products'] = $this->products;
}
Code: Select all
function update($products) {
foreach ($products as $key => $value) {
if ($value > 0) {
$this->products[$key] = $value;
}
}
$_SESSION['products'] = $this->products;
}
OpenCart®
Project Owner & Developer.
Who is online
Users browsing this forum: No registered users and 10 guests