From baa746b5530c355506da19e54cc25587fdedb5c0 Mon Sep 17 00:00:00 2001 From: Dora Jurcevic Date: Wed, 13 Nov 2024 15:29:02 +0100 Subject: [PATCH 1/4] ADD: cart note added to delivery step --- assets/css/main.scss | 21 ++++ components/cart/checkout/CheckoutDelivery.vue | 109 ++++++++++++++++-- .../cart/checkout/CheckoutDeliveryMessage.vue | 37 ++++++ components/global/ModalPopup.vue | 59 ++++++++++ locales/fr-FR.json | 9 ++ 5 files changed, 228 insertions(+), 7 deletions(-) create mode 100644 components/cart/checkout/CheckoutDeliveryMessage.vue create mode 100644 components/global/ModalPopup.vue diff --git a/assets/css/main.scss b/assets/css/main.scss index aa765bd0..407a12a0 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -21,6 +21,25 @@ .icon { font-size: 24px; } + .modal-popup { + .modal-box { + .popup { + &__content { + @apply flex flex-col items-center; + + textarea { + @apply w-full; + } + .modal-btn { + @apply px-2 btn btn-primary btn-sm mt-2 py-1; + } + + } + } + } + + } + .form-control { .label, label { @@ -34,4 +53,6 @@ } } } + + } diff --git a/components/cart/checkout/CheckoutDelivery.vue b/components/cart/checkout/CheckoutDelivery.vue index 4ae89d7a..2c684860 100644 --- a/components/cart/checkout/CheckoutDelivery.vue +++ b/components/cart/checkout/CheckoutDelivery.vue @@ -93,11 +93,56 @@ +
+ + + + + + + +
@@ -121,18 +166,30 @@
+ diff --git a/components/global/ModalPopup.vue b/components/global/ModalPopup.vue new file mode 100644 index 00000000..8afc3ad1 --- /dev/null +++ b/components/global/ModalPopup.vue @@ -0,0 +1,59 @@ + + + + diff --git a/locales/fr-FR.json b/locales/fr-FR.json index d7a752ca..56018080 100644 --- a/locales/fr-FR.json +++ b/locales/fr-FR.json @@ -121,6 +121,10 @@ "discount": "Remise" }, "delivery": { + "message-btn": "Message", + "message-text": "Un message à nous faire parvenir ?", + "message-label": "Votre message ici...", + "message-btn-label": "Envoyer", "method": { "title": "Méthode de livraison", "intro": "Sélectionnez une méthode de livraison", @@ -434,5 +438,10 @@ "thankyou_title": "Merci pour votre message !", "thankyou_description": "Nous reviendrons vers vous au plus vite." } + }, + "modal-popup":{ + "title": "Laissez- nous un message", + "placeholder": "Votre message...", + "btn-label": "Envoyer", } } From 4f7170c3051ab7cae6bc2d5505d4ec30981e40d4 Mon Sep 17 00:00:00 2001 From: Dora Jurcevic Date: Tue, 31 Dec 2024 12:19:31 +0100 Subject: [PATCH 2/4] FIX: mobile fixes --- components/cart/checkout/CheckoutDelivery.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/cart/checkout/CheckoutDelivery.vue b/components/cart/checkout/CheckoutDelivery.vue index 2c684860..8240e391 100644 --- a/components/cart/checkout/CheckoutDelivery.vue +++ b/components/cart/checkout/CheckoutDelivery.vue @@ -374,10 +374,11 @@ const selectCarrier = async (carrier: DeliveryCarrier) => { @apply col-span-3 flex h-full flex-col items-center justify-center gap-4 md:col-span-2; } &__message { + @apply max-md:col-span-3 ; .msg-btn-wrapper { @apply flex items-center; .msg-btn { - @apply px-6 btn-outline btn btn-primary btn-sm flex items-center; + @apply px-4 md:px-6 btn-outline btn btn-primary btn-sm flex items-center; &__label { } From 49bd4af9c446a9f1b857b964114d8bf6f5d904e8 Mon Sep 17 00:00:00 2001 From: Dora Jurcevic Date: Thu, 13 Feb 2025 12:24:51 +0100 Subject: [PATCH 3/4] FIX: temp fix on authcredentialsservice for firstname lastname --- services/auth/AuthCredentialService.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/auth/AuthCredentialService.ts b/services/auth/AuthCredentialService.ts index 7c670fb4..726cae2a 100644 --- a/services/auth/AuthCredentialService.ts +++ b/services/auth/AuthCredentialService.ts @@ -133,16 +133,18 @@ export class AuthCredentialService extends AuthService { * @returns */ override async registerUser( - name: string, + firstname: string, + lastname: string, password: string, login: string ): Promise { let request = null - if (login && password && name) { + if (login && password && firstname && lastname) { request = await this.ofetch(this.urlEndpointAuth + '/register', { method: 'POST', body: { - name, + firstname, + lastname, login, password } From 7a561159c8c70107bebc5803dc62458d448682ab Mon Sep 17 00:00:00 2001 From: Dora Jurcevic Date: Wed, 7 May 2025 16:11:09 +0200 Subject: [PATCH 4/4] FIX: cart lines displayed by default on checkout --- components/cart/checkout/Checkout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cart/checkout/Checkout.vue b/components/cart/checkout/Checkout.vue index 18c051bd..955b6cf4 100644 --- a/components/cart/checkout/Checkout.vue +++ b/components/cart/checkout/Checkout.vue @@ -205,7 +205,7 @@ const localePath = useLocalePath() const cartService = useShopinvaderService('cart') const cart = cartService?.getCart() || ref(null) const { t } = useI18n() -const displayCart = ref(false) +const displayCart = ref(true) /** Default steps of the checkout funnel */ const defaultSteps: checkoutStep[] = [