delivery
This commit is contained in:
@@ -144,6 +144,32 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (hasDeliveryInfo()) {
|
||||
<div class="novo-delivery">
|
||||
<h3 class="novo-delivery-title">{{ 'cart.deliveryLabel' | translate }}</h3>
|
||||
|
||||
@if (isDigitalDelivery()) {
|
||||
<div class="novo-delivery-chip">{{ 'cart.digitalDelivery' | translate }}</div>
|
||||
} @else {
|
||||
<div class="novo-delivery-list">
|
||||
@for (option of deliveryOptions(); track trackByDeliveryOption($index, option)) {
|
||||
<div class="novo-delivery-option">
|
||||
<div class="novo-delivery-option-main">
|
||||
@if (option.deliveryPlace) {
|
||||
<span>{{ 'cart.deliveryPlace' | translate }}: {{ option.deliveryPlace }}</span>
|
||||
}
|
||||
@if (option.deliveryTime) {
|
||||
<span>{{ 'cart.deliveryTime' | translate }}: {{ option.deliveryTime }}</span>
|
||||
}
|
||||
</div>
|
||||
<span class="novo-delivery-price">{{ option.deliveryPrice | number:'1.2-2' }} {{ getDeliveryCurrency() }}</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
<button class="novo-add-cart" (click)="addToCart()">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<circle cx="9" cy="21" r="1"></circle>
|
||||
@@ -423,6 +449,32 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (hasDeliveryInfo()) {
|
||||
<div class="dx-delivery">
|
||||
<h3 class="dx-delivery-title">{{ 'cart.deliveryLabel' | translate }}</h3>
|
||||
|
||||
@if (isDigitalDelivery()) {
|
||||
<div class="dx-delivery-chip">{{ 'cart.digitalDelivery' | translate }}</div>
|
||||
} @else {
|
||||
<div class="dx-delivery-list">
|
||||
@for (option of deliveryOptions(); track trackByDeliveryOption($index, option)) {
|
||||
<div class="dx-delivery-option">
|
||||
<div class="dx-delivery-option-main">
|
||||
@if (option.deliveryPlace) {
|
||||
<span>{{ 'cart.deliveryPlace' | translate }}: {{ option.deliveryPlace }}</span>
|
||||
}
|
||||
@if (option.deliveryTime) {
|
||||
<span>{{ 'cart.deliveryTime' | translate }}: {{ option.deliveryTime }}</span>
|
||||
}
|
||||
</div>
|
||||
<span class="dx-delivery-price">{{ option.deliveryPrice | number:'1.2-2' }} {{ getDeliveryCurrency() }}</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
<button class="dx-add-cart" (click)="addToCart()">
|
||||
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<circle cx="9" cy="21" r="1"></circle>
|
||||
|
||||
Reference in New Issue
Block a user