diff --git a/api/Api.ts b/api/Api.ts index b5c7b06..2051d0d 100644 --- a/api/Api.ts +++ b/api/Api.ts @@ -5283,7 +5283,7 @@ export class Api< method: "POST", body: data, secure: true, - type: ContentType.UrlEncoded, + type: ContentType.Json, ...params, }), diff --git a/components/ProductDescription.vue b/components/ProductDescription.vue index 05476cd..3ef1df4 100644 --- a/components/ProductDescription.vue +++ b/components/ProductDescription.vue @@ -42,10 +42,6 @@ @click="addToCartBtn()" /> - currentSize -
-    {{ currentSize }}
-    
diff --git a/components/cart/CartItem.vue b/components/cart/CartItem.vue index 8b33b92..a29b415 100644 --- a/components/cart/CartItem.vue +++ b/components/cart/CartItem.vue @@ -8,10 +8,6 @@ > -
-
-    {{ variations }}
-    
{{ productsData?.name }} @@ -21,9 +17,8 @@
- {{ t(`colors.${color}`) }} - {{ t(`materials.${material}`) }} - {{ `размер ${size}` }} +
{{ t(`colors.${color}`) }} {{ t(`materials.${material}`) }}
+
{{ `размер ${size}` }}
@@ -67,7 +62,7 @@ const deleteItem = (item) => { &__attributes { display: flex; - flex-direction: row; + flex-direction: column; justify-content: space-between; } } diff --git a/layouts/default.vue b/layouts/default.vue index ea36cd8..1159861 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -11,11 +11,18 @@ PAXTON - + > + +
+ {{ cart.line_items.length }} +
+
@@ -33,6 +40,7 @@