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 1, 2023
1 parent 149c028 commit 109abcf
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 @@ -387,7 +387,7 @@ function doliProductCart($product, $refresh = null, $wishlist = true, $related =
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 ) {
if (!empty($related) && $mstock['fk_parent_line']) {
if (!empty($related) && !empty($mstock['fk_parent_line'])) {
$button .= '<input id="qty-prod-'.$product->id.'" type="text" class="form-control form-control-sm" value="'.__( 'Linked item', 'doliconnect').'" aria-label="'.__( 'Linked item', 'doliconnect').'" style="text-align:center;" disabled readonly>';
} elseif ( $mstock['stock'] <= 0 || $mstock['m2'] < $mstock['step'] ) {
$button .= '<div class="input-group">';
Expand Down

0 comments on commit 109abcf

Please sign in to comment.