Skip to content

Commit

Permalink
Update product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Sep 6, 2023
1 parent acd2968 commit 49dc69b
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 @@ -359,7 +359,7 @@ function doliProductCart($product, $refresh = null, $wishlist = true) {
} else {
if ( doliCheckModules('adherentsplus', $refresh) && $product->id == doliconst("ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS", dolidelay('constante')) ) {
if (empty($mstock['qty'])) {
$button .= '<button class="btn btn-sm btn-warning mw-100" name="plus" value="plus" type="submit">'.__( 'Add to basket', 'doliconnect').'</button><input id="qty-prod-'.$product->id.'" type="hidden" aria-label="Quantity" value="'.$mstock['qty'].'" readonly>';
$button .= '<button class="btn btn-sm btn-warning mw-100" name="plus" value="plus" type="submit" onclick="doliJavaCartAction(\'updateLine\', '.$product->id.', 1, \'plus\');">'.__( 'Add to basket', 'doliconnect').'</button><input id="qty-prod-'.$product->id.'" type="hidden" aria-label="Quantity" value="'.$mstock['qty'].'" readonly>';
} else {
$button .= '<button class="btn btn-sm btn-warning" name="delete" value="delete" type="submit" onclick="doliJavaCartAction(\'updateLine\', '.$product->id.', 0, \'delete\');"><i class="fa-solid fa-trash-can"></i></button>';
}
Expand Down

0 comments on commit 49dc69b

Please sign in to comment.