feat(front-end): gestione quantità massima e price for piece

This commit is contained in:
2026-02-27 10:59:02 +01:00
parent 8028e9c7b7
commit 521009de7c
10 changed files with 160 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
<div class="checkout-form-section">
<!-- Error Message -->
<div *ngIf="error" class="error-message">
{{ error }}
{{ error | translate }}
</div>
<form [formGroup]="checkoutForm" (ngSubmit)="onSubmit()" *ngIf="!error">
@@ -142,7 +142,12 @@
</div>
</div>
<div class="item-price">
{{ (item.unitPriceChf * item.quantity) | currency:'CHF' }}
<span class="item-total-price">
{{ (item.unitPriceChf * item.quantity) | currency:'CHF' }}
</span>
<small class="item-unit-price" *ngIf="item.quantity > 1">
{{ item.unitPriceChf | currency:'CHF' }} {{ 'CHECKOUT.PER_PIECE' | translate }}
</small>
</div>
</div>
</div>