Index: administrator/components/com_hikashop/classes/cart.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- administrator/components/com_hikashop/classes/cart.php (revision )
+++ administrator/components/com_hikashop/classes/cart.php (revision )
@@ -313,7 +313,6 @@
$app->setUserState( HIKASHOP_COMPONENT.'.shipping_id',0);
$app->setUserState( HIKASHOP_COMPONENT.'.shipping_data',0);
}
- return $updated;
}else{
if($quantity){
$new_coupon=$product_id;
@@ -337,12 +336,12 @@
$this->loadCart(0,true);
$app->setUserState( HIKASHOP_COMPONENT.'.coupon_code',$new_coupon);
}
- return true;
+ $updated=true;
}
}
$dispatcher->trigger( 'onAfterCartUpdate',array( &$this, &$cart, $product_id, $quantity, $add, $type,$resetCartWhenUpdate,$force ));
- return false;
+ return $updated;
}
function updateEntry($quantity,&$cartContent,$product_id,$add,$resetCartWhenUpdate=true,$type='product',$force=false){