Skip to content

Commit

Permalink
Update product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Oct 2, 2023
1 parent 06a8288 commit 20fdf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<div id="doliform-product-'.$product->id.'" class="d-grid gap-2">';
$mstock = doliProductStock($product, $refresh, true);
$mstock = doliProductStock($product, $refresh, true, array(), $fk_parent_line);
if ( empty(doliconnectid('dolicart')) || empty(doliconnectid('dolicart')) ) {
$button .= "<a class='btn btn-block btn-info' href='".doliconnecturl('dolicontact')."?type=COM' role='button' title='".__( 'Contact us', 'doliconnect')."'>".__( 'Contact us', 'doliconnect').'</a>';
} elseif ( is_user_logged_in() && doliCheckModules('commande', $refresh) && doliconnectid('dolicart') > 0 ) {
Expand Down

0 comments on commit 20fdf74

Please sign in to comment.