diff --git a/view/frontend/templates/magewire/create-account.phtml b/view/frontend/templates/magewire/create-account.phtml index 586b21c..fcdece2 100644 --- a/view/frontend/templates/magewire/create-account.phtml +++ b/view/frontend/templates/magewire/create-account.phtml @@ -6,14 +6,9 @@ /** @var \Vendic\HyvaCheckoutCreateAccount\Magewire\CreateAccount $magewire */ /** @var \Vendic\HyvaCheckoutCreateAccount\ViewModel\GuestChecker $guestCheckerViewModel */ $guestCheckerViewModel = $viewModels->require(\Vendic\HyvaCheckoutCreateAccount\ViewModel\GuestChecker::class); - -if (!$guestCheckerViewModel->isCustomerGuest()) { - return; -} - ?>
- accountExists): ?> + isCustomerGuest() && !$magewire->accountExists): ?>
getChildHtml('checkbox') ?>