parent
d9836f2b40
commit
352986de93
@ -1,7 +1,9 @@
|
|||||||
<div class="cart" *ngIf="!loading && order && !orderConfirmed" [ngStyle]="{margin: !order.products.length && 0}">
|
<div class="cart" *ngIf="!loading && order && !orderConfirmed" [ngStyle]="{margin: !order.products.length && 0}">
|
||||||
<div class="widget_shopping_cart_content" style="opacity: 1;">
|
<div class="widget_shopping_cart_content" style="opacity: 1;">
|
||||||
<div class="elementor-menu-cart__products woocommerce-mini-cart cart woocommerce-cart-form__contents" [ngStyle]="{margin: !order.products.length && 0}">
|
<div class="elementor-menu-cart__products woocommerce-mini-cart cart woocommerce-cart-form__contents"
|
||||||
<div *ngFor="let product of order.products"
|
[ngStyle]="{margin: !order.products.length && 0}">
|
||||||
|
<div *ngFor="let product of order.products; let last = last">
|
||||||
|
<div
|
||||||
class="elementor-menu-cart__product woocommerce-cart-form__cart-item cart_item"
|
class="elementor-menu-cart__product woocommerce-cart-form__cart-item cart_item"
|
||||||
style="grid-template-columns: 70px auto;">
|
style="grid-template-columns: 70px auto;">
|
||||||
|
|
||||||
@ -13,10 +15,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="elementor-menu-cart__product-name product-name" data-title="Product">
|
<div class="elementor-menu-cart__product-name product-name" data-title="Product">
|
||||||
<span>{{product.name}}</span>
|
<span>{{product.name}}</span>
|
||||||
<dl *ngFor="let modifier of product.modifier_data" class="variation" [ngStyle]="{margin: !modifier.options.length && 0}" >
|
<dl *ngFor="let modifier of product.modifier_data" class="variation"
|
||||||
|
[ngStyle]="{margin: !modifier.options.length && 0}">
|
||||||
<ng-container *ngFor="let option of modifier.options">
|
<ng-container *ngFor="let option of modifier.options">
|
||||||
<dt style="max-width: 160px;" class="variation-">{{option.name}}:</dt>
|
<dt style="max-width: 160px;" class="variation-">{{option.name}}:</dt>
|
||||||
<dd style="display: flex; align-items: flex-end; margin-bottom: 0;" class="variation-"><p>{{product.currency_symbol}}{{option.price ?? 0}}</p>
|
<dd style="display: flex; align-items: flex-end; margin-bottom: 0;" class="variation-">
|
||||||
|
<p>{{product.currency_symbol}}{{option.price ?? 0}}</p>
|
||||||
</dd>
|
</dd>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</dl>
|
</dl>
|
||||||
@ -47,6 +51,8 @@
|
|||||||
(click)="removeFromCart($event, product.guid)"></a>
|
(click)="removeFromCart($event, product.guid)"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<hr *ngIf="!last">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="order.products.length != 0" class="elementor-menu-cart__bottom-info">
|
<div *ngIf="order.products.length != 0" class="elementor-menu-cart__bottom-info">
|
||||||
<div class="elementor-menu-cart__subtotal">
|
<div class="elementor-menu-cart__subtotal">
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
.cart {
|
.cart {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
margin-bottom: 100px;
|
margin-bottom: 100px;
|
||||||
|
max-width: 400px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elementor-menu-cart {
|
.elementor-menu-cart {
|
||||||
@ -10,7 +13,7 @@
|
|||||||
grid-template-rows: var(--price-quantity-position--grid-template-rows, auto auto);
|
grid-template-rows: var(--price-quantity-position--grid-template-rows, auto auto);
|
||||||
position: relative;
|
position: relative;
|
||||||
display: grid;
|
display: grid;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 0;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
|
|
||||||
.variation {
|
.variation {
|
||||||
@ -193,4 +196,10 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
width: 80%;
|
||||||
|
margin: 14px auto;
|
||||||
|
border-top: solid #d1d1d1 1px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
max-width: 700px;
|
max-width: 648px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user