From 20fdf740e61fad77cbe1fb1d0e0e97e8b6e74461 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Mon, 2 Oct 2023 18:59:44 +0200 Subject: [PATCH] Update product.php --- functions/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {