From 57225936e4af797b33b77a0d6756b78c7f44541a Mon Sep 17 00:00:00 2001 From: abhisheks Date: Wed, 6 Dec 2023 17:37:27 +0530 Subject: [PATCH] refactor: hide personal info step content if step is completed --- .../_partials/steps/personal-information.tpl | 126 +++++++++--------- 1 file changed, 64 insertions(+), 62 deletions(-) diff --git a/templates/checkout/_partials/steps/personal-information.tpl b/templates/checkout/_partials/steps/personal-information.tpl index d38ce1d..c1656e9 100644 --- a/templates/checkout/_partials/steps/personal-information.tpl +++ b/templates/checkout/_partials/steps/personal-information.tpl @@ -1,70 +1,72 @@ {extends file='checkout/_partials/steps/checkout-step.tpl'} {block name='step_content'} - {if $customer.is_logged && !$customer.is_guest} -
- - {l s='Connected as [1]%firstname% %lastname%[/1].' - d='Shop.Theme.Customeraccount' - sprintf=[ - '[1]' => "", - '[/1]' => "", - '%firstname%' => $customer.firstname, - '%lastname%' => $customer.lastname - ] - } - - - {l - s='Not you? [1]Log out[/1]' - d='Shop.Theme.Customeraccount' - sprintf=[ - '[1]' => "", - '[/1]' => "" - ] - } - -
- {else} -
-
+ {else} +
+ -
- {render file='checkout/_partials/customer-form.tpl' ui=$register_form guest_allowed=$guest_allowed} + {l s='Sign in' d='Shop.Theme.Actions'} + + + +
+ {render file='checkout/_partials/customer-form.tpl' ui=$register_form guest_allowed=$guest_allowed} +
+
+ {render file='checkout/_partials/login-form.tpl' ui=$login_form} +
-
- {render file='checkout/_partials/login-form.tpl' ui=$login_form} -
-
+ {/if} {/if} {/block}