Merge pull request #5276 from domko17/master

Guest Checkout sucess add register #4356
This commit is contained in:
Glenn Hermans 2021-11-04 19:44:23 +01:00 committed by GitHub
commit 8d068d2558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 24 additions and 1 deletions

View File

@ -12,6 +12,7 @@ use Webkul\Customer\Mail\RegistrationEmail;
use Webkul\Customer\Mail\VerificationEmail;
use Webkul\Customer\Repositories\CustomerGroupRepository;
use Webkul\Customer\Repositories\CustomerRepository;
use Webkul\Sales\Models\Order;
use Webkul\Shop\Mail\SubscriptionEmail;
class RegistrationController extends Controller
@ -161,7 +162,6 @@ class RegistrationController extends Controller
session()->flash('info', trans('shop::app.customer.signup-form.success-verify-email-unsent'));
}
session()->flash('success', trans('shop::app.customer.signup-form.success'));
}
@ -181,6 +181,8 @@ class RegistrationController extends Controller
if ($customer) {
$customer->update(['is_verified' => 1, 'token' => 'NULL']);
Order::where('customer_email', $customer->email)->update(['customer_id' => $customer->id]);
session()->flash('success', trans('shop::app.customer.signup-form.verified'));
} else {
session()->flash('warning', trans('shop::app.customer.signup-form.verify-failed'));

View File

@ -484,6 +484,7 @@ return [
'empty' => 'عربة تسوقك فارغة',
'update-cart' => 'تحديث عربة',
'continue-shopping' => 'واصل التسوق',
'continue-registration' => 'متابعة التسجيل',
'proceed-to-checkout' => 'انتقل إلى الخروج',
'remove' => 'احذف',
'remove-link' => 'احذف',

View File

@ -480,6 +480,7 @@ return [
'empty' => 'Ihr Einkaufswagen ist leer',
'update-cart' => 'Warenkorb aktualisieren',
'continue-shopping' => 'Mit dem Einkaufen fortfahren',
'continue-registration' => 'Registrierung fortsetzen',
'proceed-to-checkout' => 'Zur Kasse',
'remove' => 'Entfernen',
'remove-link' => 'Entfernen',

View File

@ -486,6 +486,7 @@ return [
'empty' => 'Your shopping cart is empty',
'update-cart' => 'Update Cart',
'continue-shopping' => 'Continue Shopping',
'continue-registration' => 'Continue Registration',
'proceed-to-checkout' => 'Proceed To Checkout',
'remove' => 'Remove',
'remove-link' => 'Remove',

View File

@ -485,6 +485,7 @@ return [
'empty' => 'Tu carrito está vacía',
'update-cart' => 'Actualizar carrito',
'continue-shopping' => 'Seguir comprando',
'continue-registration' => 'Daŭrigu Registradon',
'proceed-to-checkout' => 'Continuar con el pago',
'remove' => 'Eliminar',
'remove-link' => 'Eliminar',

View File

@ -480,6 +480,7 @@ return [
'empty' => 'سبد خرید شما خالی است',
'update-cart' => 'به روز رسانی سبد خرید',
'continue-shopping' => 'ادامه خرید',
'continue-registration' => 'ادامه ثبت نام',
'proceed-to-checkout' => 'ادامه به پرداخت',
'remove' => 'برداشتن',
'remove-link' => 'برداشتن',

View File

@ -479,6 +479,7 @@ return [
'empty' => 'Votre panier est vide',
'update-cart' => 'Mise à jour panier',
'continue-shopping' => 'Continuer vos achats',
'continue-registration' => 'Continuer l inscription',
'proceed-to-checkout' => 'Passer à la caisse',
'remove' => 'Supprimer',
'remove-link' => 'Supprimer',

View File

@ -481,6 +481,7 @@ return [
'empty' => 'Il tuo carrello è ancora vuoto',
'update-cart' => 'Aggiorna Carrello',
'continue-shopping' => 'Continua con i tuoi acquisti',
'continue-registration' => 'Continua la registrazione',
'proceed-to-checkout' => 'Procedi alla Cassa',
'remove' => 'Rimuovi',
'remove-link' => 'Rimuovi',

View File

@ -446,6 +446,7 @@ return [
'empty' => 'カートが空です。',
'update-cart' => 'カートを更新する',
'continue-shopping' => '買い物を続ける',
'continue-registration' => '登録を続ける',
'proceed-to-checkout' => '購入手続きに進む',
'remove' => '削除',
'remove-link' => '削除',

View File

@ -488,6 +488,7 @@ return [
'empty' => 'Uw winkelwagen is leeg',
'update-cart' => 'Winkelwagen bijwerken',
'continue-shopping' => 'Doorgaan met winkelen',
'continue-registration' => 'Doorgaan met registratie',
'proceed-to-checkout' => 'Ga naar de kassa',
'remove' => 'Verwijderen',
'remove-link' => 'Verwijderen',

View File

@ -481,6 +481,7 @@ return [
'empty' => 'Twój koszyk jest pusty',
'update-cart' => 'Zaktualizuj koszyk',
'continue-shopping' => 'Kontynuuj zakupy',
'continue-registration' => 'Kontynuuj rejestrację',
'proceed-to-checkout' => 'Przejdź do kasy”',
'remove' => 'Usuń',
'remove-link' => 'Usuń',

View File

@ -473,6 +473,7 @@ return [
'empty' => 'Seu carrinho de compras está vazio',
'update-cart' => 'Atualizar Carrinho',
'continue-shopping' => 'Continuar Comprando',
'continue-registration' => 'Continuar o registro',
'proceed-to-checkout' => 'Finalizar Compra',
'remove' => 'Remover',
'remove-link' => 'Remover',

View File

@ -481,6 +481,7 @@ return [
'empty' => 'Alışveriş sepetiniz boş',
'update-cart' => 'Sepeti Güncelle',
'continue-shopping' => 'Alışverişe Devam Et',
'continue-registration' => 'Kayda Devam Et',
'proceed-to-checkout' => 'Satın Al',
'remove' => 'Kaldır',
'remove-link' => 'Kaldır',

View File

@ -699,6 +699,10 @@ a {
text-decoration: none !important;
}
}
&.registration-btn{
margin-left: 10px;
}
}
.dropdown-icon::after {

View File

@ -23,6 +23,11 @@
<a href="{{ route('shop.home.index') }}" class="theme-btn remove-decoration">
{{ __('shop::app.checkout.cart.continue-shopping') }}
</a>
@guest('customer')
<a href="{{ route('customer.register.index') }}" class="theme-btn registration-btn remove-decoration">
{{ __('shop::app.checkout.cart.continue-registration') }}
</a>
@endguest
</div>
{{ view_render_event('bagisto.shop.checkout.continue-shopping.after', ['order' => $order]) }}