diff --git a/functions/product.php b/functions/product.php index ee9568ad..66720bdc 100644 --- a/functions/product.php +++ b/functions/product.php @@ -380,7 +380,7 @@ function doliaddtocart($product, $mstock, $quantity, $price, $timestart = null, function doliProductCart($product, $refresh = null, $wishlist = true, $fk_parent_line = null) { global $current_user; $button = '
'; - $mstock = doliProductStock($product, $refresh, true); + $mstock = doliProductStock($product, $refresh, true, array(), $fk_parent_line); if ( empty(doliconnectid('dolicart')) || empty(doliconnectid('dolicart')) ) { $button .= "".__( 'Contact us', 'doliconnect').''; } elseif ( is_user_logged_in() && doliCheckModules('commande', $refresh) && doliconnectid('dolicart') > 0 ) {