Skip to content
Code-Schnipsel Gruppen Projekte
Commit b94f9198 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: quiqqer/stock-management#10

Übergeordneter 83e60b2a
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -14,6 +14,7 @@
<input type="number" value="1" min="1" max="{$maxQuantity}"
class="quiqqer-order-button-add-quantity-input"
title="{locale group='quiqqer/order' var='control.basket.quantity.text'}"
{if !$maxQuantity}disabled{/if}
/>
{if $showControls}
<span class="quiqqer-order-button-add-quantity-increase btn"
......@@ -24,7 +25,10 @@
</div>
{/if}
<button class="add-to-basket {$this->getAttribute('btnClass')}" title="{$addButtonTitle}">
<button class="add-to-basket {$this->getAttribute('btnClass')}"
title="{$addButtonTitle}"
{if !$maxQuantity}disabled{/if}
>
<label class="add-to-basket-text">
{$btnText}
</label>
......
......@@ -70,7 +70,7 @@ public function getBody()
$maxQuantity = $Product->getMaximumQuantity();
if (!$maxQuantity) {
$maxQuantity = '';
$this->setAttribute('disabled', true);
}
$this->setAttribute('data-pid', $Product->getId());
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren